W
Walter Steadman
Hello all,
I would like to know if anyone can point me to a good place to learn
about date type functions, queries etc... for MS Access.
I am trying to build an update query that is on BirthMonth. In the query I
have placed the following fields from two tables
PilotID (PK, for tblPilot)
BirthMonth (Birthdate in 6/7/2005 format) from tblPilot
Active (YesNo CheckBox) from tblHours
DateFlown (Date field in 6/7/2005 format) from tblHours
I try to get an update query to change all records where the Date is less
than the first day of the month following a persons birthmonth.
I put the following criteria in the Date field
Now()=> DateSerial(Year(Date()),Month("BirthMonth")+1,1)
And in Update to under the ACTIVE field I put FALSE
When I run the query I get the following:
Data type mismatch in query or expression
Because I am not very good with this Date thing, I don't know what to do. I
have changed it to Date() and put the Date() or Now() on the back end. Any
help would be appreciated.
Thanks in Advance
Wally Steadman
US Army in Iraq
I would like to know if anyone can point me to a good place to learn
about date type functions, queries etc... for MS Access.
I am trying to build an update query that is on BirthMonth. In the query I
have placed the following fields from two tables
PilotID (PK, for tblPilot)
BirthMonth (Birthdate in 6/7/2005 format) from tblPilot
Active (YesNo CheckBox) from tblHours
DateFlown (Date field in 6/7/2005 format) from tblHours
I try to get an update query to change all records where the Date is less
than the first day of the month following a persons birthmonth.
I put the following criteria in the Date field
Now()=> DateSerial(Year(Date()),Month("BirthMonth")+1,1)
And in Update to under the ACTIVE field I put FALSE
When I run the query I get the following:
Data type mismatch in query or expression
Because I am not very good with this Date thing, I don't know what to do. I
have changed it to Date() and put the Date() or Now() on the back end. Any
help would be appreciated.
Thanks in Advance
Wally Steadman
US Army in Iraq