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

How can I automatically add date to a table

Status
Not open for further replies.

cav

MIS
Feb 3, 2000
49
US
This seem as if it should be an easy task. Daily exteral data will be imported into a table in the database. When importing, I would like the date to appear in a field [date]. Can this be done at the table level? I would appreciate any ideas.
Thanks.
 
if you are just doing the FILE-IMPORT and the stuff creates new table every day, then what you will have to do is after it's imported, manually add a field called RefreshDate or whatever. create an Update Query to make that field be Date() or NOW() (NOW includes the time too).

if you have an existing table that you are appending the new records to, make a field called RefreshDate (type = date) and set it's default value to DATE() or NOW(). make the format some date/time format. dont fill it in with anything in your query: since it's the DEFAULT value, that's what will fill in when a new record is added.

ok?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top