General information
Category:
COM/DCOM and OLE Automation
Title:
Importing into MS-Access
In one of my VFP applications I want to move data from VFP to Access.
I have found out how to get the data into Access but only as a linked table. I do this with the following source:
oAccess = CreateObject("Access.Application")
oAccess.newcurrentdatabase(pcCopyTo)
oDb = oAccess.CurrentDb
oTable = oDb.CreateTableDef(pcCopyFile)
* Link
oTable.Connect = "DBase IV;DATABASE=" + pcCopyFrom
oTable.SourceTableName= pcCopyFile+ '.dbf'
oDb.TableDefs.Append(oTable)
This works quite nicely but it only links the table. I want to import it into Access. Going through the help-files has brought me nowhere. Can anyone tell me how this can be done?
Any help is appreciated.
Regards,
Ron Brahma
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only