Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

greater than date 1

Status
Not open for further replies.

brendanDATA

Technical User
Jan 6, 2005
2
US
I am trying to insert records where a field has a certain value AND the date is after 11/13/2004. When I run the query, it seems to ignore the DATE and just inserts all of the records where the other field has the certain value. The query currently looks like this:

INSERT INTO New_table
SELECT [01_10_05complete].*
FROM 01_10_05complete
WHERE (((([01_10_05complete].Date_Added) > 11/13/2004)) and (([01_10_05complete].Venue_Type)="value"));

Can someone help with the date syntax? The column is formatted in MM/DD/YYYY right now.
 
Brendan

You might try putting # literals around the date
INSERT INTO New_table
SELECT [01_10_05complete].*
FROM 01_10_05complete
WHERE (((([01_10_05complete].Date_Added) > #11/13/2004#)) and (([01_10_05complete].Venue_Type)="value"));

infomania
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top