Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use file dialog in Access 2000

Status
Not open for further replies.

Francis

Programmer
Jan 26, 1999
124
GB
I would like to have a button on an Access form that brings up a file dialog.
Specifically I want to get a new file name and then make a new database with that name.
I use VB a lot, but there is no common dialog in the Access toolbar. Do I need some reference?
Your Help appreciated, thanks.
 
Use an unbound textbox with any fancies you want and then do an 'on click' event and open, create or do any other thing you want with the tables in currentdb().

rollie@bwsys.net
 
Sorry that did not help. I know to use on click, but what do I put in there to bring up a standard File New (I do not want to invoke Access's New command, I just want a file dialog that returns a file name.
Thanks
 
Sorry that did not help. I know to use on click, but what do I put in there to bring up a standard File New I do not want to invoke Access's New command, I just want a file dialog that returns a file name.
Thanks
 
Go to & get the FindAndRunFiles.zip file from the download page.
There is a module in that file called mdlOpenSaveDialogs. Copy that into your database and have a look at the examples on how to call and use the open/save dialogs.
If you get stuck, post again & I'll talk you through it.

HTH

Ben ----------------------------------
Ben O'Hara
Home: bpo@RobotParade.co.uk
Work: bo104@westyorkshire.pnn.police.uk
Web: ----------------------------------
 
Look at thread181-307043

Ben sent me the code a couple of weeks ago.

Thanks again Ben

Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top