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!
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!