whojstall11
Registered User.
- Local time
- Today, 11:02
- Joined
- Sep 7, 2011
- Messages
- 94
Im trying to write a dlookup statement when my Discontinue yes/no check box is checked it will copy one field from one table and put it in another table.
the error i am getting is
Test cant not find the field '|' referred in your expression
the error i am getting is
Test cant not find the field '|' referred in your expression
Code:
Private Sub Discontinue_AfterUpdate()
If Discontinue = -1 Then
tblNotesCurrentMeds.Medications = DLookup("Medications", "Current Meds", "IDCurrentMeds = '" & [IDCurrentMeds] & "'")
tblNotesCurrentMeds.Dosage = DLookup("Dosage", "Current Meds", "IDCurrentMeds = '" & [IDCurrentMeds] & "'")
Else
End If
End Sub