Subfrom - Query for a field

dimitri

Registered User.
Local time
Today, 10:50
Joined
Oct 9, 2012
Messages
18
Hello,

A subform has 4 fields, State, Location ID, Total and District.

For the first 3 fields ( State, LocationID, Total ) the data is obtained using a query 1. This is set up in the design mode

For the last field, District, data needs to be obtained by passing locationID to
Table 2.
E.g. select district from table 2 where ID = @locationID

How can I write a query where locationID is passed as a parameter in the design mode

Please if there is a easier better way of handling this do let me know. :)

Thank you
D
 
Why not get the data for District in query1, by linking the 2 tables fields ID and locationID?
 

Users who are viewing this thread

Back
Top Bottom