G
Guest
I can't get my code to work for importing textfile.
================
Function ImportWebData()
On Error Resume Next
Dim reportdate As Date
reportdate = DateAdd("d", 0, Date)
DoCmd.SetWarnings (False)
DoCmd.RunSQL ("Delete * From WebData")
DoCmd.TransferText acImportDelim, "specImportWeb", "WebData",
"\\NPH\DATA\class_count_" & Format(reportdate, "mmddyy") & ".txt", False
DoCmd.SetWarnings True
End Function
=====================
The WebData table is there, the path is correct, & i set up a manual import
& named it "specImportWeb". I get no data in my table after this is run (from
a macro)
Thanks for the help.
patti
================
Function ImportWebData()
On Error Resume Next
Dim reportdate As Date
reportdate = DateAdd("d", 0, Date)
DoCmd.SetWarnings (False)
DoCmd.RunSQL ("Delete * From WebData")
DoCmd.TransferText acImportDelim, "specImportWeb", "WebData",
"\\NPH\DATA\class_count_" & Format(reportdate, "mmddyy") & ".txt", False
DoCmd.SetWarnings True
End Function
=====================
The WebData table is there, the path is correct, & i set up a manual import
& named it "specImportWeb". I get no data in my table after this is run (from
a macro)
Thanks for the help.
patti