M
MJ
I am completely confused and FRUSTRATED with this latest problem with Access
2007.
We are using Access 2007 running against 2000-2003 format (.mdb). Until
yesterday, this database which has functioned famously for a long time.
Never a problem with this "automated" load process, to collect 4 text files
from a network location and load them to this database elsewhere on the
network. What is puzzling, is that the Import Specification works for the
1st two files then MAGICALLY the spec changed from delimited to fixed width
during the processing! Anyone have a clue how this is possible? Code for
import is below:
ProcDate = Format(Forms!FrmAdmin!ProcessDate, "yyyy mm") & " 01"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumN.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumS.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumV.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumW.txt"
I checked the Import Spec manually to verify that it was correct PRIOR to
running the process, but when I go back to it after the run-time error, it
has changed from delimited to fixed width.
If I load the files manually, all runs fine. How is this possible?
Thank you in advance for taking the time to lend a hand.
2007.
We are using Access 2007 running against 2000-2003 format (.mdb). Until
yesterday, this database which has functioned famously for a long time.
Never a problem with this "automated" load process, to collect 4 text files
from a network location and load them to this database elsewhere on the
network. What is puzzling, is that the Import Specification works for the
1st two files then MAGICALLY the spec changed from delimited to fixed width
during the processing! Anyone have a clue how this is possible? Code for
import is below:
ProcDate = Format(Forms!FrmAdmin!ProcessDate, "yyyy mm") & " 01"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumN.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumS.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumV.txt"
DoCmd.TransferText acImportDelim, _
"Chgsum Import Specification", "MonthlyDataDump", _
"\\(network location 1)\" & ProcDate & ", chgsumW.txt"
I checked the Import Spec manually to verify that it was correct PRIOR to
running the process, but when I go back to it after the run-time error, it
has changed from delimited to fixed width.
If I load the files manually, all runs fine. How is this possible?
Thank you in advance for taking the time to lend a hand.