473,396 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating Shortcuts for multiple ms access databases

I would like to have a Form with shortcuts that allows me to hyperlink to several ms access databases. I'm using MS ACCESS97 and MS ACCESS 2003 under Window XP.

Thanks

John
Aug 21 '07 #1
5 1961
MMcCarthy
14,534 Expert Mod 8TB
I would like to have a Form with shortcuts that allows me to hyperlink to several ms access databases. I'm using MS ACCESS97 and MS ACCESS 2003 under Window XP.

Thanks

John
Hi John,

You will need to provide more information. What do you want the hyperlinks to do? Open a new instance of Access with the linked database? If you are using two different versions of Access this could get very complicated.

Mary
Aug 21 '07 #2
Hi John,

You will need to provide more information. What do you want the hyperlinks to do? Open a new instance of Access with the linked database? If you are using two different versions of Access this could get very complicated.

Mary
Hi Mary:

Thanks for the response. You are correct, I simple want the hyperlink to open a new instantance of the linked database. When finished with the linked database, I want to close the new instance of the database and return control back to the Main Menu form that has the hyperlinks.

The reason I stated two different version of ACCESS is that I use ACCESS97 at home and ACCESS2003 at work. The two will never mix.

Thanks.
John
Aug 21 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
You need to use Automation. The following fuction should open a new instance of Access with the database passed as a parameter dbPath. Remember to include the full path to the database.

Expand|Select|Wrap|Line Numbers
  1. Function openNewDB(ByVal dbPath As String)
  2. On Error Resume Next 'temporary error handling
  3. Dim objAccess As Object
  4.  
  5.     Set objAccess = CreateObject("Access.Application")
  6.     ShowAccess instance:=objAccess, size:=SW_MAXIMIZE
  7.     objAccess.OpenCurrentDatabase filepath:=dbPath
  8.     Set objAccess = Nothing
  9.  
  10. End Function
  11.  
Aug 21 '07 #4
You need to use Automation. The following fuction should open a new instance of Access with the database passed as a parameter dbPath. Remember to include the full path to the database.

Expand|Select|Wrap|Line Numbers
  1. Function openNewDB(ByVal dbPath As String)
  2. On Error Resume Next 'temporary error handling
  3. Dim objAccess As Object
  4.  
  5.     Set objAccess = CreateObject("Access.Application")
  6.     ShowAccess instance:=objAccess, size:=SW_MAXIMIZE
  7.     objAccess.OpenCurrentDatabase filepath:=dbPath
  8.     Set objAccess = Nothing
  9.  
  10. End Function
  11.  
Kathy:

Thanks for your suggestion.

John
Aug 21 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Kathy:

Thanks for your suggestion.

John
Let me know how you get on with it.

Mary
Aug 21 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: headware | last post by:
I have an issue that I've been encountering in an ASP application I'm working on. Most of the application is written in ASP, but there is one page written in ASP.NET. The ASP.NET page needs to have...
1
by: Richard Johansson | last post by:
Hi, I want to create an option for creating shortcuts to my application on the users desktop and Start menu in the setup. In my deployment project i have created the necessary checkboxes, and...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
8
by: Nanda | last post by:
hi, I am trying to generate parameters for the updatecommand at runtime. this.oleDbDeleteCommand1.CommandText=cmdtext; this.oleDbDeleteCommand1.Connection =this.oleDbConnection1;...
6
by: Andi Reisenhofer | last post by:
Hallo C# folks, Somebody know how to create a ODBC DSN dynamically in c# program. Also interesting for me would be the connectionstring for an Access Database. Thinks a lot Andreas
3
by: Marius Rus | last post by:
I have an application write in c# and i want to offer to the user to create himself shortcuts with icons for the main menu items. I will very much appreciate if will receive an helping hand. Thank...
2
by: John Dann | last post by:
Apologies if this isn't the best group - maybe someone can suggest a more appropriate one - I can't immediately see anything on ado.net. I need to store a significant amount of data (say 1-10MB)...
18
by: rdemyan via AccessMonster.com | last post by:
Here's my plan for creating nightly backups of the production back-end file (the IT staff in their infinite wisdom have prevented use of Windows Scheduler and users do not have administrative...
6
by: GregG | last post by:
Greetings, I've inherited a project which requires the use of multiple Access databases, each containing a dozen or so tables each. I need to perform queries which included relations and results...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.