G
Guest
HI all
I have a query that was working fine but like some of us we just cant stop
playing and then mess it all up.... yeah thats what I did...
Anyway... really simple one this... so simple I cant do it again...
I have a query with a orderdate, and in the criteria it has the code:
Year([OrderDate])=Year(Now()) And Month([OrderDate])=Month(Now())
This when re-open the query in design creates two new fields, Year & Month
and in their criteria it has for Year Year(Now()) and for month
Month(Now())
I put something else in there for a parameter query in both fields so that
when the user opens the query they entered the year and then the month and
the query brought back orders for that month and year.
But silly me began to change it because I wanted to have some validation for
when they entered the year and month... this is where it all went wrong...
dont know how to do the validation bit, BUT now I have lost the simple thing
I did to get the query to run with the two parameter boxes... to bring the
orders for that month and year... I know how to put in parameter boxes but
dont know how I got it to do the date checking thingy... HELPPPP!!!!
I now have a headache so going to get a drink and hope someone will have
answered me when I get back...
Thanks to all you wise ones out there...
Saj
I have a query that was working fine but like some of us we just cant stop
playing and then mess it all up.... yeah thats what I did...
Anyway... really simple one this... so simple I cant do it again...
I have a query with a orderdate, and in the criteria it has the code:
Year([OrderDate])=Year(Now()) And Month([OrderDate])=Month(Now())
This when re-open the query in design creates two new fields, Year & Month
and in their criteria it has for Year Year(Now()) and for month
Month(Now())
I put something else in there for a parameter query in both fields so that
when the user opens the query they entered the year and then the month and
the query brought back orders for that month and year.
But silly me began to change it because I wanted to have some validation for
when they entered the year and month... this is where it all went wrong...
dont know how to do the validation bit, BUT now I have lost the simple thing
I did to get the query to run with the two parameter boxes... to bring the
orders for that month and year... I know how to put in parameter boxes but
dont know how I got it to do the date checking thingy... HELPPPP!!!!
I now have a headache so going to get a drink and hope someone will have
answered me when I get back...
Thanks to all you wise ones out there...
Saj