date question

S

Striker3070

In A2007, I import data daily. the date field is not part of the import, nd
I want to auto fill that with yesterdays date. So something like Today(-1)
How do I get that field to auto poulate with yesterdays date
 
S

Steve

Go to your table in design view. Set the Default Valu of the date field to
Date()-1.

Steve
(e-mail address removed)
 
C

Clifford Bass

Hi,

Set the Default Value of the field to:

DateAdd("d",-1,Date())

or

Date()-1


Clifford Bass
 

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