ACC1x: Error Message Using Access Basic to Import FileID: Q109952
|
You receive an "Application Error" message or a general protection (GP) fault when you use Access Basic code to import files into Microsoft Access.
This problem occurs if you use the DoMenuItem action to open the Import dialog box.
Use the TransferDatabase, TransferSpreadsheet, or TransferText action instead of the DoMenuItem action.
Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.
Option Explicit
Function TestImport()
DoCmd DoMenuItem 1,0,5
End Function
Option Explicit
Function ImpText()
DoCmd TransferText A_ImportDelim,,"ATABLE","C:\TEST.TXT"
End Function
Additional query words: gpf transfer text
Keywords : kberrmsg kbinterop
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 1, 1999