A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Code to open a DB



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2005, 02:51 PM
AFKAFB
external usenet poster
 
Posts: n/a
Default Code to open a DB

All
I've a form with four command buttons.
Selecting the first button allows the user to use the current DB.
However, clicking any of the other three buttons should close the
current DB and open up a new DB, e.g. DB_2.mdb, DB_3.mdb etc...
Preferable the user should not notice the current DB has closed.
I cannot use the same DB s there are chinese walls issues and the data
needs to be ring-fenced at all times.
Regards
Chris

  #2  
Old August 25th, 2005, 05:30 PM
fredg
external usenet poster
 
Posts: n/a
Default

On 25 Aug 2005 06:51:57 -0700, AFKAFB wrote:

All
I've a form with four command buttons.
Selecting the first button allows the user to use the current DB.
However, clicking any of the other three buttons should close the
current DB and open up a new DB, e.g. DB_2.mdb, DB_3.mdb etc...
Preferable the user should not notice the current DB has closed.
I cannot use the same DB s there are chinese walls issues and the data
needs to be ring-fenced at all times.
Regards
Chris


Application.FollowHyperlink "c:\FolderName\Db2.mdb"
DoCmd.Close acForm, Me.Name

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All forms open when viewing form code Jeff Oppenheim via AccessMonster.com Using Forms 2 June 20th, 2005 08:02 PM
Make Change Case in Excel a format rather than formula Kevin Worksheet Functions 1 March 18th, 2005 08:53 PM
Ms-Access 2003 RC General Discussion 23 January 19th, 2005 08:22 PM
Power Point Pack and Go scott Powerpoint 17 October 4th, 2004 05:57 AM
Dbl Click Code - open a form JohnLute Using Forms 12 June 17th, 2004 03:10 PM


All times are GMT +1. The time now is 08:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.