chuckcoleman
Registered User.
- Local time
- Yesterday, 21:24
- Joined
- Aug 20, 2010
- Messages
- 377
Hi,
I've been going nuts trying to get this to work.
In my form, in the After Update for a control, [LotNbrX], I want the value in that control to be used to establish the value of another control on the form called [EMailX]. Note: [LotNbrX] is a text field.
If I use a MsgBox to test this,
What am I missing/doing wrong?
Thank you for your help - Chuck
I've been going nuts trying to get this to work.
In my form, in the After Update for a control, [LotNbrX], I want the value in that control to be used to establish the value of another control on the form called [EMailX]. Note: [LotNbrX] is a text field.
If I use a MsgBox to test this,
MsgBox ("The value of LotNbr is: " & Me.LotNbrX)
, before the code below runs, and I enter 19 in the [LotNbrX] control, the MsgBox returns "The value of LotNbr is: 19", which is correct. The next step in the code is to set the value of EMailLU as shown below. It returns, "An Invalid Use of Null" when it runs.
Code:
Dim EmailLU as String
EMailLU = DLookup("[Email]", "[Email for Receipt]", "[LotNbr] = ' " & [Forms]![Revenue Input Form].[LotNbrX] & " ' ")
Me.EmailX = EmailLU
What am I missing/doing wrong?
Thank you for your help - Chuck