I've found several code solutions for this task but have yet to find one that works for me or is elementary enough for me to preform successfully.
I'm am exporting dbf files from a program called EcoWin and I need to append those files to tables in Access, preferably in Access 2007.
I have set up an event button on the form and have entered the following code into the VisualBasic utility accessed via the ellipses in the "On Click" dialog found in the Property Sheet for my command button:
Option Compare Database
Private Sub Command18_Click()
CurrentDb.Execute "INSERT INTO [CAMPBELL] SELECT * FROM " & _
"[dBase IV;DATABASE=C:\Documents and Settings\jtaylor\Desktop\;].[07_29_~1.DBF]\;"
End Sub
I found this code on another thread on this site.
I have the set the "On Click" dialog to "[Event Process]". When I click the button, nothing happens, not even an error.
Am I missing a step? Is this code appropriate for what I want to do?
Thanks for the help!
I'm am exporting dbf files from a program called EcoWin and I need to append those files to tables in Access, preferably in Access 2007.
I have set up an event button on the form and have entered the following code into the VisualBasic utility accessed via the ellipses in the "On Click" dialog found in the Property Sheet for my command button:
Option Compare Database
Private Sub Command18_Click()
CurrentDb.Execute "INSERT INTO [CAMPBELL] SELECT * FROM " & _
"[dBase IV;DATABASE=C:\Documents and Settings\jtaylor\Desktop\;].[07_29_~1.DBF]\;"
End Sub
I found this code on another thread on this site.
I have the set the "On Click" dialog to "[Event Process]". When I click the button, nothing happens, not even an error.
Am I missing a step? Is this code appropriate for what I want to do?
Thanks for the help!