Sharon Hague
Registered User.
- Local time
- Today, 04:13
- Joined
- Jul 10, 2003
- Messages
- 138
Hi All
I am having trouble with an iif function in a form I have created.
I have a field called Date and I have created a label called Mth.
I want the Mth field to return a value 1 if the date is in month 1 or 2 etc based on the date that is entered in the date field.
Just to test whether it works my control source for my Mth label is
=IIf([Date] Between 1/1/3 And 31/1/3,"1","")
When I view the form "" is returned on all entries including the entries with January dates.
Can anybody help?
I am having trouble with an iif function in a form I have created.
I have a field called Date and I have created a label called Mth.
I want the Mth field to return a value 1 if the date is in month 1 or 2 etc based on the date that is entered in the date field.
Just to test whether it works my control source for my Mth label is
=IIf([Date] Between 1/1/3 And 31/1/3,"1","")
When I view the form "" is returned on all entries including the entries with January dates.
Can anybody help?