opening a form with mulitple conditions

kes

Registered User.
Local time
Today, 23:18
Joined
Mar 6, 2013
Messages
53
Hi,

I have a vba code for opening a form with mulitple conditions for opening a form displaying a specific record, but I'm getting a blank form as result.

this is the code I'm using:

DoCmd.OpenForm "Edit_Mission", acNormal, , "[Report_Date]= " & Me.Date & " And [Supporter_Name]='" & Me.Supporter & "'"

appreciate your help.
 
It could be the date value.
Try the below:

DoCmd.OpenForm "Edit_Mission", acNormal, , "[Report_Date]= #" & Format(Me.Date, "mm/dd/yyyy") & "# And [Supporter_Name]='" & Me.Supporter & "'"
 
it worked!! thanks!!!
 

Users who are viewing this thread

Back
Top Bottom