Output to excel file?

G

Gary

Hi,

I want to output a table to a excel file and then delete the table,
but I need to use this DLookUp("export","photo_path") &
format(date(),"yyyy") & Forms![select_delete]![mm] &".xls"
to be the file path & name. I try to use a marco to run, but the file name
field cannot accept.
Is it I need to write code to do it, can anyone please help me!

Thank!!

Gary
 
K

Ken Snell

I think you just forgot the = sign:

=DLookUp("export","photo_path") & Format(date(),"yyyy") &
Forms![select_delete]![mm] &".xls"
 
G

Gary

Thank Ken!!

Ken Snell said:
I think you just forgot the = sign:

=DLookUp("export","photo_path") & Format(date(),"yyyy") &
Forms![select_delete]![mm] &".xls"


--

Ken Snell
<MS ACCESS MVP>

Gary said:
Hi,

I want to output a table to a excel file and then delete the table,
but I need to use this DLookUp("export","photo_path") &
format(date(),"yyyy") & Forms![select_delete]![mm] &".xls"
to be the file path & name. I try to use a marco to run, but the file name
field cannot accept.
Is it I need to write code to do it, can anyone please help me!

Thank!!

Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top