G
gmazza via AccessMonster.com
Hey there,
Instead of changing the code all the time, I stored my path in my table and
am using DLookup to grab the path for Importing.
Here is my code:
strFile = Nz(DLookup("Directory450", "ImportDirectory"))
DoCmd.TransferText acImportDelim, "450ImportSpecs", "450Export", strFile
Here is the value of the field Directory450:
DIR("F:\IT\db\Sales\Archive\450*.csv")
It is failing on my import saying you cannot import this file. I figure it is
because when I debug I see the strFile = "DIR("F:\IT\db\Sales\Archive\450*.
csv")"
It is putting quotes around the value in the table. I don';t think I want
this, any thoughts??
Thanks!!
Instead of changing the code all the time, I stored my path in my table and
am using DLookup to grab the path for Importing.
Here is my code:
strFile = Nz(DLookup("Directory450", "ImportDirectory"))
DoCmd.TransferText acImportDelim, "450ImportSpecs", "450Export", strFile
Here is the value of the field Directory450:
DIR("F:\IT\db\Sales\Archive\450*.csv")
It is failing on my import saying you cannot import this file. I figure it is
because when I debug I see the strFile = "DIR("F:\IT\db\Sales\Archive\450*.
csv")"
It is putting quotes around the value in the table. I don';t think I want
this, any thoughts??
Thanks!!