Hi Friends
I am trying to design a form where i need to browse a excel file using a open dialog box & append the same in a Table at the database.Any how i have taken care that the Table fields are in same order as the Excel file does.
Please have a look at the below codes which i used to open a "Open Dialog Box" which is working fine.
Now i want that when ever i select the File & click open the data in the file should get updated to the existing table deleting the existing data.
Can any one help me out in this regard.
Appreciate your help
Thanks
Manoj Kumar
I am trying to design a form where i need to browse a excel file using a open dialog box & append the same in a Table at the database.Any how i have taken care that the Table fields are in same order as the Excel file does.
Please have a look at the below codes which i used to open a "Open Dialog Box" which is working fine.
Now i want that when ever i select the File & click open the data in the file should get updated to the existing table deleting the existing data.
Can any one help me out in this regard.
Code:
Private Sub Command4_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "all Files (*.*)", "*.*")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, _
OpenFile:=True, _
DialogTitle:="Choose a file...", _
Flags:=ahtOFN_HIDEREADONLY)
End Sub
Thanks
Manoj Kumar
Comment