473,806 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using VBA to "Connect" to another Database

I have a database called "TEMP"

On Opening the "TEMP" Database, I need to use VBA :
a) to connect to another database called "PMF"
b) the PMF database requires a password on opening called "allow"
c) to link 5 Tables in the PMF Database ... Table1,2,3,4,5
Next ... I need to set up some forms & queries in my Temp database
which will access data from the PMF database. Do I need to create any
indexes in this TEMP database of mine or will this TEMP database
automatically use the indexes within the PMF database.

Thx & Best Rgds,
Prakash.
Nov 13 '05 #1
2 8420
The TEMP database will use the primary key of any table in the PMF
database. If that is not what you want, you have to create a query in the
TEMP database to read a PMF table in the order you want.

On 12 Oct 2004 12:53:11 -0700, Prakash Wadhwani <si****@omantel .net.om>
wrote:
I have a database called "TEMP"

On Opening the "TEMP" Database, I need to use VBA :
a) to connect to another database called "PMF"
b) the PMF database requires a password on opening called "allow"
c) to link 5 Tables in the PMF Database ... Table1,2,3,4,5
Next ... I need to set up some forms & queries in my Temp database
which will access data from the PMF database. Do I need to create any
indexes in this TEMP database of mine or will this TEMP database
automatically use the indexes within the PMF database.

Thx & Best Rgds,
Prakash.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 13 '05 #2
Thx Hugh !! What about any other indexes in the PMF database (besides
the primary keys)? Will the TEMP database use even those indexes ?

Also ... How do I use VBA to connect to another database ... could
someone please answer my queries (3 points) ... a,b,c ... as below

Thx & Best Rgds,
Prakash.

"Hugh Webster" <hw******@bluew in.ch> wrote in message news:<opsftrmih 3ojj1n1@mercury >...
The TEMP database will use the primary key of any table in the PMF
database. If that is not what you want, you have to create a query in the
TEMP database to read a PMF table in the order you want.

On 12 Oct 2004 12:53:11 -0700, Prakash Wadhwani <si****@omantel .net.om>
wrote:
I have a database called "TEMP"

On Opening the "TEMP" Database, I need to use VBA :
a) to connect to another database called "PMF"
b) the PMF database requires a password on opening called "allow"
c) to link 5 Tables in the PMF Database ... Table1,2,3,4,5
Next ... I need to set up some forms & queries in my Temp database
which will access data from the PMF database. Do I need to create any
indexes in this TEMP database of mine or will this TEMP database
automatically use the indexes within the PMF database.

Thx & Best Rgds,
Prakash.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2588
by: Jamie Burns | last post by:
I have written a Windows Service to access an Oracle database. A dialog box appears, prompting for user logon if the database is not accessable due to network problems I just want the connection to fail quietly. Here's a little code snippet. // Create workspace. CDaoWorkspace wspCurrent; wspCurrent.Create("MyWorkspace","MyUser","MyPasswordUser");
12
3739
by: Mikito Harakiri | last post by:
I wonder if WITH RECURSIVE MaryAncestor(anc,desc) AS ( (SELECT parent as anc, child as desc FROM ParentOf WHERE desc = "Mary") UNION (SELECT A1.anc, A2.desc FROM MaryAncestor A1, MaryAncestor A2 WHERE A1.desc = A2.anc) ) SELECT anc FROM MaryAncestor
2
5797
by: Hunter | last post by:
when I firstly ran "connect to dbname" command after "db2start", it spent me about 10 mins. I saw a process named "db2sync" that used 700M memory. The OS is Linux Advanced Server V2.1, Database is V8.1.5. The machine is Compaq ProLiant 8000, 1G Mem. How can I do? thanks..
1
1613
by: DellaCroce | last post by:
I am trying, for the first time, to set up a small development system at home. I have two computer C1 and C2. C2 has SQL Server 2000 and IIS running on. C1 has VS.Net 2003 running on it. All under WinXP I am missing something, because I can not get VS to connect to the SQL Server because "Not associated with Trust SQL Server connection" Where is this set up?? The user name, Dev1, has user profile and permissions on C2 in...
0
2812
by: chico_001 | last post by:
I am doing some database testing and when I found a problem with the case sensitivity of "CONNECT TO". When "CONNECT to" is written with capital and small letters, a new db is not dropped and recreated. e.g. CONNECT to db; Note lowercase "to". If this is changed to CONNECT TO db; then newdb works
1
2234
by: delset | last post by:
This is my first post on this form so please bear with me if i don't give all the needed info. My problem seems simple but i googled for hours and have not yet found anything that can help with my problem at all. It is hard for me to explain but basically... I have a function that uses PEAR DB to connect to mysql and display a table from the database. Then the user submits a change in the table and this sends it to a different php file...
3
4789
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the results into another DB? I know from Wscripts and MS-Sql that you can build just two objects but I did not see something like that in REXX. Thanks in advance for your help
1
1633
by: nagendra prasad | last post by:
how to connect database for visualbasic using ADO
15
6660
Zwoker
by: Zwoker | last post by:
Hi all, I am accessing data from an Oracle database via a connect string. I got into the situation where I wanted to write my SQL select statement to do a join between a local table sitting in my MS Access (2003) database, and an external Oracle table. But I realised I had no idea how to write the SQL. It appears that the whole SQL command gets passed to Oracle, not giving me any visibility to my local tables, is that correct? I know...
0
9597
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
10618
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
10366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7649
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
6877
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
5546
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...
1
4329
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
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.