vbado
04-20-2004, 03:25 PM
Hi,
This site is really very useful and awesome.I could learn a lot from this site.
I got a problem.
I am trying to retrieve somedatas(flight info,airlines,timings) depending on the textbox input(FROM,TO,DATE).
I got many rows of datas.I could manage to put first row of data in 5-6 labels.
But i don't know how to create many labels at run time, so that all the rows can be displayed .
Is there any other way to display all the informations in any format?
HERE IS MY CODE
*******************************
MyConn.Open
Set MyRecSet = MyConn.Execute("SELECT * from airline_info where Origin= '" & from1 & " ' and Destination='" & to1 & " '")
Option1.Caption = MyRecSet!Airlines
Label4.Caption = MyRecSet!Flight_no
Label5.Caption = MyRecSet!Origin
Label6.Caption = MyRecSet!Destination
Label7.Caption = MyRecSet!Departing_time
Label8.Caption = MyRecSet!Arrival_time
Label9.Caption = MyRecSet!Cost
Thanks
This site is really very useful and awesome.I could learn a lot from this site.
I got a problem.
I am trying to retrieve somedatas(flight info,airlines,timings) depending on the textbox input(FROM,TO,DATE).
I got many rows of datas.I could manage to put first row of data in 5-6 labels.
But i don't know how to create many labels at run time, so that all the rows can be displayed .
Is there any other way to display all the informations in any format?
HERE IS MY CODE
*******************************
MyConn.Open
Set MyRecSet = MyConn.Execute("SELECT * from airline_info where Origin= '" & from1 & " ' and Destination='" & to1 & " '")
Option1.Caption = MyRecSet!Airlines
Label4.Caption = MyRecSet!Flight_no
Label5.Caption = MyRecSet!Origin
Label6.Caption = MyRecSet!Destination
Label7.Caption = MyRecSet!Departing_time
Label8.Caption = MyRecSet!Arrival_time
Label9.Caption = MyRecSet!Cost
Thanks