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

Importing from Excel and Set a date value

Status
Not open for further replies.

Mreid99

MIS
Apr 27, 1999
8
US
I have a need to import data from an excel spreadsheet. This data contains ten fields and is imported to a table with 17 fields of which a download date is a field. I would like to auto populate the download date field with the date it was downloaded into the table.
 
Why not use an Update SQL statement. You can use a Where clause of where data is null...<br>
<br>
htwh,<br>
Steve<br>

 
Hi,<br>
<br>
Import Excel-sheet first to temporary table. Then make insert query from temporary table to target table where you match all the matching fields plus make an extra expression field with Date() function and match that to target table's download date field. And make these steps (import, insert, delete rows from temp.table) as a nice macro.<br>
<br>
This can sometimes be faster than UPDATEs.<br>
<br>
Yours,<br>
Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top