B
brian.reimer
I need to run a report that queries for records from the 1st to the
14th of a month and then from the 15th to the end of the month. I've
created a form which asks the user for the period's beginning date, (ie
05/01/2006) and validates the entry to make sure its either the 1st or
the 15th of a month. I've created an event command which runs the
report based on a query. The query uses the input from the form to
query the table and return records. I've tried using the following
query and it doesn't pull any records at all. Can anyone see what i'm
missing?
IIf((DatePart("d",[Forms]![Bonus_Galbraith]![Funded_Begin])=1),
(Between ([Forms]![Bonus_Galbraith]![Funded_Begin]) And
DateAdd("d",13,([Forms]![Bonus_Galbraith]![Funded_Begin]))),
(Between ([Forms]![Bonus_Galbraith]![Funded_Begin]) And
((DateAdd("m",1,[Forms]![Bonus_Galbriath]![Funded_Begin])-15))))
Any input is greatly appreciated.
14th of a month and then from the 15th to the end of the month. I've
created a form which asks the user for the period's beginning date, (ie
05/01/2006) and validates the entry to make sure its either the 1st or
the 15th of a month. I've created an event command which runs the
report based on a query. The query uses the input from the form to
query the table and return records. I've tried using the following
query and it doesn't pull any records at all. Can anyone see what i'm
missing?
IIf((DatePart("d",[Forms]![Bonus_Galbraith]![Funded_Begin])=1),
(Between ([Forms]![Bonus_Galbraith]![Funded_Begin]) And
DateAdd("d",13,([Forms]![Bonus_Galbraith]![Funded_Begin]))),
(Between ([Forms]![Bonus_Galbraith]![Funded_Begin]) And
((DateAdd("m",1,[Forms]![Bonus_Galbriath]![Funded_Begin])-15))))
Any input is greatly appreciated.