I am playing about and learning access.
I am trying to set up a database of flights of have been on.
The 2 tables are:
All flight details
Airport Details
When creating the form for the all flight details I have successfully managed to create a combo box for Airport_Code which then auto-fill in the Airport_Name with the correct airport name - all working fine.
When i then try to also get this to auto-fill in the country of the airport it does not return anything - the Country field is in the source of Airport_Code (column 2) - 3rd column over.
The code i added in the the code builder is:
Private Sub cmbDepAirportCode_AfterUpdate()
Me.Departure_Airport_Name.Value = Me.cmbDepAirportCode.Column(1)
Me.Departure_Country.Value = Me.cmbDepAirportCode.Column(2)
End Sub
The first line works fine to return the airport name but i cannot, for the life of me, get the country to return
Can anyone suggest anything?
Thanks