I would like to take the values of two combo boxes in a form, pass them to a query, and if there is a result display that in a text box in the form, i would like to do this in expression builder if possible, and if it is if there is no result fromt he query can you display some text such as "not valid", here is how i thought it might work but didnt:
The flightID is what i would like to be the result if the SourceID and DestinationID exist as a flight.
Thanks
Nathan
Code:
=( [Flights Query]![SourceID] = [Source ID], [Flights Query]![DestinationID] = [DestinationID] ) SELECT «Expr» [Flights Query]![FlightID]
Thanks
Nathan
Comment