I have just finished a quick macro to automate a daily report. I have read about all the Transfer Spreadsheet horrors and have run into a similar problem. I think I'll have to do a DoCmd.Transfer spreadsheet, but I'm not at all familiar with VB.
Here's the macro
transfertext
transfertext
setwarnings
openquery
setwarnings
close
Setwarnings
Openquery
TransferSpreadhseet
close
I am exporting to a network folder in excel very successfully. File name "admissions.xls"
What I'd like to do is add the current date to the file name each day and have it replace the exhisting file. I have tried using (Path name).......\="admissions"&DateValue(Now()).xls and other formula variations without success.
Is there a simple way to do this?
Thanks in advance for any help.
Here's the macro
transfertext
transfertext
setwarnings
openquery
setwarnings
close
Setwarnings
Openquery
TransferSpreadhseet
close
I am exporting to a network folder in excel very successfully. File name "admissions.xls"
What I'd like to do is add the current date to the file name each day and have it replace the exhisting file. I have tried using (Path name).......\="admissions"&DateValue(Now()).xls and other formula variations without success.
Is there a simple way to do this?
Thanks in advance for any help.