J
JIM
I have this code on the click event of a command button:
Private Sub Option158_Click()
'DoCmd.OpenReport "rptWorkOrders", , , "[Date()] = " &
Format(Me![txtWODate], "\#mm\/dd\/yyyy\#")
DoCmd.OpenReport "rptWorkOrders", , , "Me![txtWODate] = #" & Date & "#"
End Sub
I'm trying to print out a batch of work orders if they have today's date in
them but I can get the syntax right and I tried several different formats
found in discussion group. It either prints all the work orders or nothing.
What am I doing wrong?
TIA
Private Sub Option158_Click()
'DoCmd.OpenReport "rptWorkOrders", , , "[Date()] = " &
Format(Me![txtWODate], "\#mm\/dd\/yyyy\#")
DoCmd.OpenReport "rptWorkOrders", , , "Me![txtWODate] = #" & Date & "#"
End Sub
I'm trying to print out a batch of work orders if they have today's date in
them but I can get the syntax right and I tried several different formats
found in discussion group. It either prints all the work orders or nothing.
What am I doing wrong?
TIA