K
Kicker
Guest
I have been playing with this all day and have looked at just about every forum I belong to.
The following code works "sometime" and blows up at others. I don't have to do anything with the AccessTest.csv file, it just changes how it works all by itself.
Here is what I have....
I have a file that has been exported from the company database (oracle).
Two of the fields contain data that could be number or string. The AccessTest table has them as text and when it works, it works great.
the most common error is that the Jet engine can't find the csv file.
Is there another (better?) way of getting the data into my access application?
ttfn
Kicker
The following code works "sometime" and blows up at others. I don't have to do anything with the AccessTest.csv file, it just changes how it works all by itself.
Code:
Private Sub Command0_Click()
DoCmd.RunSQL "delete * from accesstest"
DoCmd.TransferText acImportDelim, , "Accesstest", "AccessTest.csv", True
End Sub
Here is what I have....
I have a file that has been exported from the company database (oracle).
Two of the fields contain data that could be number or string. The AccessTest table has them as text and when it works, it works great.
the most common error is that the Jet engine can't find the csv file.
Is there another (better?) way of getting the data into my access application?
ttfn
Kicker