Code not firing because of Date Format

papic1972

Registered User.
Local time
Tomorrow, 10:07
Joined
Apr 14, 2004
Messages
122
Hi!

My If statement is firing correctly because (i'm suspecting) of the date format portion of my code. To me it all looks ok, it just doesn't fire.
Can anyone spot a problem with it?

If Me.Qty < 3 And Me.PricePeriod = 2 And (Me.DeliveryDate < #1/5/2011# & Format(Me.DeliveryDate.Value, "dd/mm/yyyy")) Then


Many thanks.
 
OOps, i meant to say "My If statement is NOT firing correctly" in my opening line!
 
Air code here, but try;
Code:
If Me.Qty < 3 And Me.PricePeriod = 2 And (Format(Me.DeliveryDate.Value, "dd/mm/yyyy") < #1/5/2011# ) Then
 
Air code is just as effective as air guitar sometimes!!!!:)

Thanks Big John, that worked a treat!!!
 

Users who are viewing this thread

Back
Top Bottom