Use DLookup to Retrieve Field Value from a Date?

Heatshiver

Registered User.
Local time
Tomorrow, 05:47
Joined
Dec 23, 2011
Messages
263
I have an input form that a user can insert a Start Date and End Date, and then open a report with charts in those date ranges.

I need to populate some of the field values in the report with field values that correspond to the End Date only.

Can I use the DLookup expression for this? I've been trying this, along with other expressions, and can't get the result I need.
 
Last edited:
No. DLookup only can retrieve data from queries and tables. You need to reference it using this syntax:
=[Forms].[YourFormNameHere].[TheFieldNameHere]

Replace 'YourFormNameHere' and 'TheFieldNameHere' and you should see the value on the form.
 
Unfortunately, this doesn't help me as it doesn't include a way to reference End Date.

Thanks for the reply.
 
Simplest solution was to use the Criteria of my Date field in the query:

=[Forms]![UserInputFormName]![ControlNameFromUserInputForm]
 

Users who are viewing this thread

Back
Top Bottom