By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,495 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,495 IT Pros & Developers. It's quick & easy.

How can I get DatabaseFileName to refer to the current mdb file?

P: n/a
now have hard-coded the command to set the DatabaseFileName to the name of
the mdb file in which it resides:
DatabaseFileName = "Client Reporting.mdb"

I assume there is a variable name that simply refers to the Access database
in which one is currently working?

Thanks
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Try CurrentDb().Name

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Colleyville Alan" <ae***********@nospam.comcast.net> wrote in message
news:wGZjc.41454$YP5.3106171@attbi_s02...
now have hard-coded the command to set the DatabaseFileName to the name of
the mdb file in which it resides:
DatabaseFileName = "Client Reporting.mdb"

I assume there is a variable name that simply refers to the Access database in which one is currently working?

Thanks

Nov 12 '05 #2

P: n/a
thanks

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:40***********************@freenews.iinet.net. au...
Try CurrentDb().Name

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Colleyville Alan" <ae***********@nospam.comcast.net> wrote in message
news:wGZjc.41454$YP5.3106171@attbi_s02...
now have hard-coded the command to set the DatabaseFileName to the name of the mdb file in which it resides:
DatabaseFileName = "Client Reporting.mdb"

I assume there is a variable name that simply refers to the Access

database
in which one is currently working?

Thanks


Nov 12 '05 #3

P: n/a
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:40***********************@freenews.iinet.net. au...
Try CurrentDb().Name


Thank you from me too...
CA
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.