Hi,
I am trying to import a CSV file using TransferText in VB. I am getting this error:
Run Time Error:
Object Required
when I try to execute this code:
Private Sub Next_Click()
Dim cnn As New ADODB.Connection
'Open the Connection
cnn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\V Care\Project\bhav1.mdb;Persist Security Info=False"
appAccess.DoCmd.TransferText acImportDelim, "Cmbhav Import Specification", "cmbhav", "C:\cm3JUNbhav.csv", True
End Sub
I have no idea why this is happening. what am I doing wrong? How can I correct this?
Any help will be appreciated.
Thanks,
D
I am trying to import a CSV file using TransferText in VB. I am getting this error:
Run Time Error:
Object Required
when I try to execute this code:
Private Sub Next_Click()
Dim cnn As New ADODB.Connection
'Open the Connection
cnn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\V Care\Project\bhav1.mdb;Persist Security Info=False"
appAccess.DoCmd.TransferText acImportDelim, "Cmbhav Import Specification", "cmbhav", "C:\cm3JUNbhav.csv", True
End Sub
I have no idea why this is happening. what am I doing wrong? How can I correct this?
Any help will be appreciated.
Thanks,
D