hey,
I have 9 buttons on my form. all have this on click command:
Code:
Function Import()
On Error GoTo Import_Err
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "CSV Files (*.CSV)", "*.CSV")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)
'Actual import
If Len(strInputFileName) > 0 Then
DoCmd.TransferText acImportDelim, "Import Specification", "tbl_Import", strInputFileName, False, ""
End If
Import_Exit:
Exit Function
Import_Err:
MsgBox Error$
Resume Import_Exit
End Function
When this code runs i want it to import to append it to the table. each button corresponds with its table. if someone could show me how to write this, that would be fantastic! thanks