Now and Current Date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everybody,

I am using Access as a frontend and SQL Server as a backend for a
registration form on a website. I want to have a field that automatically
puts the current date of when a person registers into the table. In Access,
I use the expression Now() to declare the date as the default value. If I
put Now() into the same field as the default value for the backend database,
I receive syntax errors.

Is Now() the correct code to place into the default value or is there
something else?

Thank you in advance,

Matt
 
Matt said:
I am using Access as a frontend and SQL Server as a backend for a
registration form on a website. I want to have a field that
automatically puts the current date of when a person registers into
the table. In Access, I use the expression Now() to declare the date
as the default value. If I put Now() into the same field as the
default value for the backend database, I receive syntax errors.

Is Now() the correct code to place into the default value or is there
something else?

GETDATE()

Acki
 

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

Back
Top