Hi All,
I have this code to import data into a table. I need to change it to check to see if the txt file exists and if yes then import but if not then exit. How do I do that?
Public Function Import_Assay48control_Data()
On Error GoTo Import_Assay48control_Data_Err
DoCmd.SetWarnings False
DoCmd.TransferText acImportFixed, "Assay48control Import Specification", "IMX Assay48 Controls Table", "c:\IMX\Data\assay48controla.txt", False, ""
DoCmd.SetWarnings True
Import_Assay48control_Data_Exit:
Exit Function
Import_Assay48control_Data_Err:
'MsgBox Error$
Resume Import_Assay48control_Data_Exit
End Function
Thanks
I have this code to import data into a table. I need to change it to check to see if the txt file exists and if yes then import but if not then exit. How do I do that?
Public Function Import_Assay48control_Data()
On Error GoTo Import_Assay48control_Data_Err
DoCmd.SetWarnings False
DoCmd.TransferText acImportFixed, "Assay48control Import Specification", "IMX Assay48 Controls Table", "c:\IMX\Data\assay48controla.txt", False, ""
DoCmd.SetWarnings True
Import_Assay48control_Data_Exit:
Exit Function
Import_Assay48control_Data_Err:
'MsgBox Error$
Resume Import_Assay48control_Data_Exit
End Function
Thanks