List box to (1 Viewer)

foxtet

Registered User.
Local time
Today, 13:38
Joined
May 21, 2011
Messages
129
Hi every one
I want list box clicked country to display it airports in the given list box and add airports to to that list for the selected country.

foxtet
 

Attachments

  • Country&Airports.zip
    1.3 MB · Views: 38

Ranman256

Well-known member
Local time
Today, 05:38
Joined
Apr 9, 2015
Messages
4,337
in the cboCountry afterupdate event, reload the Airport box...
cboAirport.rowsouce = "qsAllAirports"

Code:
sub cboCountry_Afterupdate()
   if isNull(cboCountry) then
       cboAirport.rowsource = "qsAllAirports"
   else
       cboAirport.rowsource = "qsAirports1Country"
   end if
the qsAirports1Country query uses the cboCountry in its query.
 

foxtet

Registered User.
Local time
Today, 13:38
Joined
May 21, 2011
Messages
129
Thank you.
cboCountry is not used. I have used a list box and text box only
text box is for search.
lstCountry list box is for search result
lstAirports list box is for airports of the clicked country in lstCountry

I also want add airports to lstAirport is desired airport is not available.

foxtet
 

Users who are viewing this thread

Top Bottom