Insert timestamp in asp

D

Dave

I keep getting a Syntax error in Insert Statement, regarding a timestamp.

Can you help with the syntax.

The DB is Access

The code is myTimestamp = now()

the insert statement is #" & myTimestamp & "#

I have tried '" & myTimestamp & "'
 
B

Bob Lehmann

What is the error? Show your *whole* query.

Why not set the field to default to the current date instead of inserting
it?

Bob Lehmann
 
D

Dave

How do I set it to default?

Is this accomplished in the Insert syntax?

The code is big!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top