Naming an exported file

R

Robin Chapple

I asked for help with incorporating my [ID] field into an exported
file.

This is part of the code.

"D:\###\" & Me![ID] & "IndividualReport.RTF",

It gives me the separate files that I need.

Now I would prefer that the ID number were at the end of the file name
rather than at the beginning so that the files are sorted together.

I have tried several rearrangements withour success.

How should I rewrite that code??

Thanks,

Robin Chapple
 
R

Randy Harris

Robin Chapple said:
I asked for help with incorporating my [ID] field into an exported
file.

This is part of the code.

"D:\###\" & Me![ID] & "IndividualReport.RTF",


"D:\###\" & "IndividualReport" & Me![ID] & ".RTF",
 
P

PC Datasheet

Only as a point of interest ----

You don't need the square brackets around ID. You only need to use square
brackets when the name of the object contains one or more spaces.


--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com


Randy Harris said:
Robin Chapple said:
I asked for help with incorporating my [ID] field into an exported
file.

This is part of the code.

"D:\###\" & Me![ID] & "IndividualReport.RTF",


"D:\###\" & "IndividualReport" & Me![ID] & ".RTF",

It gives me the separate files that I need.

Now I would prefer that the ID number were at the end of the file name
rather than at the beginning so that the files are sorted together.

I have tried several rearrangements withour success.

How should I rewrite that code??

Thanks,

Robin Chapple
 
R

Robin Chapple

Thanks, all is well. I did not handle the extension properly.

Robin Chapple said:
I asked for help with incorporating my [ID] field into an exported
file.

This is part of the code.

"D:\###\" & Me![ID] & "IndividualReport.RTF",


"D:\###\" & "IndividualReport" & Me![ID] & ".RTF",

It gives me the separate files that I need.

Now I would prefer that the ID number were at the end of the file name
rather than at the beginning so that the files are sorted together.

I have tried several rearrangements withour success.

How should I rewrite that code??

Thanks,

Robin Chapple
 

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