Very long line broken into parts by HansV to prevent horizontal scrolling
I have regularly been importing Visual Foxpro files into my access database. I now want to automate this procedure with code/macro. However I’m having trouble with the sytax.
To get the Database Name property, I linked the required table and looked at the table properties as suggested in the help file. However, it looks like there are too many arguments within it to me.
Also not really sure what to put for source and destination.
This is the code I have so far:
DoCmd.TransferDatabase acImport, “ODBC”, “ODBC;DSN=Visual FoxPro Tables;” & _
“SourceDB=U:ColdharbourComp_B.DBC;SourceType=DBC;Exclusive=No;” & _
“BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;;TABLE=wname”, _
acTable, “u:coldharbourComp_B.DBC”, “wname_b”, False
any help would be much appreciated.
Amanda