Set text box default value to dlookup results

bconner

Registered User.
Local time
Today, 10:17
Joined
Dec 22, 2008
Messages
183
All,
I have a subform that is the result of a query. I want to set the default to a text box on the subform based on the value in another field on the same subform.

Below is a dlookup using the table that the subform query is based on:

Code:
=DLookUp("[Self Pay AP]![Date Worked]","[SELF PAY AP]","[Self Pay AP]![INVOICE NUMBER] =" & [Forms]![FrmMain]![QRY_ALL_DETAIL SUBFORM].[Form]![INVOICE NUMBER])

the default value is coming back null on the subform, any ideas how to get this to work?
 
Thanks Goh, I appreciate the help, I will give it a go.
 

Users who are viewing this thread

Back
Top Bottom