473,785 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating Shortcuts for multiple ms access databases

3 New Member
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 1982
MMcCarthy
14,534 Recognized Expert Moderator MVP
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
johngreen1948
3 New Member
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 Recognized Expert Moderator MVP
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
johngreen1948
3 New Member
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 Recognized Expert Moderator MVP
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
2850
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 access to the ASP Session data to run correctly. In order to achieve this I create my own HTTP request for a certain ASP page with the name of Session variable that I want is stored in the query string of the request. The requested ASP page...
1
1681
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 tried to set Conditions on the folders "User's desktop" and "User's Program Menu", but the conditions doesnt seem to affect shortcuts, only physical files... Have anyone else run into these kinds of problems, or am i just missing something obvious...
11
5320
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 should configured to work, how memory is shared or not, etc. I can not seem to find any good links to this information. Thanks, Mike
8
5970
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; this.oleDbDeleteCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("Original_ApplicantName", dataset.Tables.Columns.DataType, 50,
6
18720
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
2266
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 you
2
1336
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) in a database that will be created and accessed under vb.net purely on a local PC from a Windows Forms application. While I'm happy dealing with data in general, I've just never had the need to create and use databases before so I'm starting...
18
1980
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 rights to Windows). Candace Tripp has an automatic backing up program that I modified for our use. You can schedule a time for the backup to occur. Since Windows task scheduler is not available to us, this means that the auto backup program will...
6
2112
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 from the contents of tables from separate databases. I've got the table adapters configured in the XSDs, connection strings in the web.config, and use data objects in the site's code, but for the life of me I cannot figure out how to...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9958
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.