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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date syntax

Status
Not open for further replies.

callhandler

Programmer
Oct 25, 2002
11
US
What are the idiosyncracies of the date format in Access?

why does the following fail?

INSERT INTO records(date) VALUES (#02/28/1972#)

The field "date" not surprisingly, is a date field.
 
Once again, i'd do this using the query grid. but if you really want to use SQL I think the syntax for the field name is:

[recordname].[Fieldname]
 
Unfortunately, I can successfully execute something like:

INSERT INTO records(number) VALUES (10)

where number is a field of type integer.

But, when I try a date format it fails?!?!
I must be doing somthing wrong, but I don't know what.
 
Hi!

What error to you get? The first thing you ought to do is rename the field. Never use a reserved word as the name of a field, control etc. Try using fldDate.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top