Update Query with Criteria

cgemmill1

Registered User.
Local time
Today, 11:10
Joined
Jul 16, 2012
Messages
34
I used to know this, but have forgotten it. I want to create an update query to change admissions to zero for the month of December. I am getting stuck in the criteria.

My table has the following CMSID, Admission, StartDate

I enter startdate =12/01/12 in the criteria and it will not work. I have tried brackets as well. What syntax am I missing?
 
How about this:

WHERE startdate BETWEEN #12/01/12# AND #12/31/12#
 
Close but here is the actual syntax [MeasurementStartDate]="12/1/2012"
 
Is the measurement start date field set up with a text data type or a date/time data type?

If it is text, convert it in your criteria

WHERE cdate(measurementstartdate) BETWEEN #12/01/2012# AND #12/31/2012#
 

Users who are viewing this thread

Back
Top Bottom