I am assumming that you mean either a Dbase or Foxpro table. If this is
correct:
Use the TransferDatabase method. The database type is "Dbase III"
(probably). Use acLink as the transer type. Now the dbf will look like an
Access table to DAO.
You can then create an Action query that will move the data however you
want, then use the docmd.DeleteObject to remove the link.
> I'm trying to connect to a dbf file from a visual basic function (in a module
> in access) to get some data and copy it in an access table...
[quoted text clipped - 3 lines]
>
> Thanks...
abaldo1977 - 30 Jun 2005 17:32 GMT
Thank you very much.... It's working perfectly now.
Here's the code if anybody has the same problem anytime:
DoCmd.TransferDatabase acImport, "dbase III", "C:\", , "mayor.dbf",
"tempImportacion"
(imports the DbaseIII file c:\mayor.dbf in the Access table tempImportacion)
> I am assumming that you mean either a Dbase or Foxpro table. If this is
> correct:
[quoted text clipped - 11 lines]
> >
> > Thanks...