S
Stephen sjw_ost
Hello again,
I am trying to convert this code;
DoCmd.TransferText acExportFixed, "Excludes", "t_ACCT_NUMtemp", _
"\\nsusfla90ce01\cost$\OST\Procedures\Scrub_PrivateLabel\Exclusions\Excludes.txt", True, ""
into this code;
DoCmd.TransferText acExportFixed, "Excludes", "t_ACCT_NUMtemp", _
"\\nsusfla90ce01\cost$\OST\Procedures\Scrub_PrivateLabel\Exclusions\" &
"Excludes_" & Format(Date, "mmddyy") & ".txt"", True, """
The problem is when I run the new code I get the message;
"Cannot update. Database or object is read-only."
I have my specification set up and it works when I use it manually so I know
it is not the spec. All I am looking to do is make the output file name to
have the current days date in it? i.e.
Excludes_102809.txt or
Excludes_102709.txt.
I don't care that it will be overwritten multiple times in a day, I just
need the current days date to show in the file name.
How can I get the transfertext feature to do this? Or do I need to use
another feature?
PS:
It must be in text format.
Thanks for any help
I am trying to convert this code;
DoCmd.TransferText acExportFixed, "Excludes", "t_ACCT_NUMtemp", _
"\\nsusfla90ce01\cost$\OST\Procedures\Scrub_PrivateLabel\Exclusions\Excludes.txt", True, ""
into this code;
DoCmd.TransferText acExportFixed, "Excludes", "t_ACCT_NUMtemp", _
"\\nsusfla90ce01\cost$\OST\Procedures\Scrub_PrivateLabel\Exclusions\" &
"Excludes_" & Format(Date, "mmddyy") & ".txt"", True, """
The problem is when I run the new code I get the message;
"Cannot update. Database or object is read-only."
I have my specification set up and it works when I use it manually so I know
it is not the spec. All I am looking to do is make the output file name to
have the current days date in it? i.e.
Excludes_102809.txt or
Excludes_102709.txt.
I don't care that it will be overwritten multiple times in a day, I just
need the current days date to show in the file name.
How can I get the transfertext feature to do this? Or do I need to use
another feature?
PS:
It must be in text format.
Thanks for any help