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

simple INSERT INTO problem 1

Status
Not open for further replies.

marc7

Programmer
Oct 4, 2001
35
0
0
US
i am taking information from an asp page and trying to enter it into an access database. i need to update 2 fields in an existing record (the fields are blank). here is the sql, any ideas why it is not working? the Received field is formatted as "Date/Time" in access.

INSERT INTO Files (Received, FTP)
VALUES ('1/1/2004', 'CD')
WHERE Id='1' AND
Contact='RT' AND
Category='Art'

thanks for any help...
 
Code:
Update files
set received = '1/1/2004',
 FTP = 'CD'
WHERE Id='1' AND
Contact='RT' AND
Category='Art'
 
what swampboogies said, only probably with octothorps instead of quotes to delimit the date string...

Update files
set received = #1/1/2004#, ...


rudy
SQL Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top