D
David
Group,
I have a form with multiple drop down boxes and check
boxes. The form writes the selected values to multiple
tables. The JOIN is a field called drn which is in every
table. On the form I have a button to launch a query. I
would like the query to retrieve the drn value from the
active form or [Data Request].drn Here is my query, but
it is prompting the user to enter the DNR.
SELECT [ESN Request].*, [ESN Request].[Data Request Number]
FROM [Data Request] RIGHT JOIN [ESN Request] ON [Data
Request].[Data Request Number]=[ESN Request].[Data Request
Number]
WHERE ((([ESN Request].[Data Request Number])=[Data
Request].[Data Request Number]));
HOWEVER, this returns multiple records, how can I limit
the selection to the Data Request Number for the active
FORM? I have tried to create a private variable in the
form's code, but can not get the value to pass to the
query.
Any help you can provide would be greatly appreciated.
I have a form with multiple drop down boxes and check
boxes. The form writes the selected values to multiple
tables. The JOIN is a field called drn which is in every
table. On the form I have a button to launch a query. I
would like the query to retrieve the drn value from the
active form or [Data Request].drn Here is my query, but
it is prompting the user to enter the DNR.
SELECT [ESN Request].*, [ESN Request].[Data Request Number]
FROM [Data Request] RIGHT JOIN [ESN Request] ON [Data
Request].[Data Request Number]=[ESN Request].[Data Request
Number]
WHERE ((([ESN Request].[Data Request Number])=[Data
Request].[Data Request Number]));
HOWEVER, this returns multiple records, how can I limit
the selection to the Data Request Number for the active
FORM? I have tried to create a private variable in the
form's code, but can not get the value to pass to the
query.
Any help you can provide would be greatly appreciated.