Can anyone tell me, please, why my DLookup doesn't work using the on Click of my control button?
My control is on a form that is opened from a subform. This is the code I put in my form's code:
If (DLookup("[drivingHolidays]", "T_miscDates", "[dateDate] = " & Me.lboDateDate)) = True Then
MsgBox "Driving Holiday"
End If
I've searched a lot of different forms and haven't really found anything to help. Thank you!
My control is on a form that is opened from a subform. This is the code I put in my form's code:
If (DLookup("[drivingHolidays]", "T_miscDates", "[dateDate] = " & Me.lboDateDate)) = True Then
MsgBox "Driving Holiday"
End If
I've searched a lot of different forms and haven't really found anything to help. Thank you!