You can store the filename in a table and then use that
table to get the name for your report. For instance, make
the following table:
*SystemDefaults*
SysDefID, autonumber
ImportFilename, text
Since you are importing the file manually, you would need to
update this table manually -- it will just have one record
unless you want to keep a historical record of what you have
brought in.
Then, in your report:
make a textbox control for the filename
ControlSource --> =nz(dFirst("ImportFilename",
"SystemDefaults"))
You could make a form to pick the file -- the code to
process the OK (go get the file and import it) button could
also update the SystemDefaults table.
"Browse" refers to a button that pops up the standard
Windows dialog box to identify a filename
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day
remote programming and training
strive4peace2006 at yahoo.com
*