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

Add import date to records being imported through TransferText 1

Status
Not open for further replies.

beansmom

Programmer
Aug 24, 2004
35
US
I have a command button that imports an Excel spreadsheet using TransferText. I need to add the import date to each record as they are imported. My code is

DoCmd.SetWarnings False
DoCmd.TransferText acImportDelim, "IP for DM Import Specification", "tblPatients", Forms!frmImport.txtFileName
[Forms]![frmPatients].Requery
MsgBox "File complete!", vbInformation, "IMPORT PROCESS"
DoCmd.SetWarnings True

Any help is appreciated!
 
Add a datefield to tblPatients and set the default value to now()
 
I have records being imported and entered manually. I was hoping to leave the import date blank for the manually entered fields.
 
Import into a temporary table and then use an append query calling the Date() function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top