Solved Open another Database and find customer (1 Viewer)

Number11

Member
Local time
Today, 15:07
Joined
Jan 29, 2020
Messages
607
so, i am using this code to open another database

accapp.OpenCurrentDatabase ("pathhere")
accapp.Visible = True

both databases have a customer account number field, how to I get the open database to select the same customer from the original database?>
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:07
Joined
Oct 29, 2018
Messages
21,449
You can save the number into a variable, so you can access it anytime.
 

namliam

The Mailman - AWF VIP
Local time
Today, 16:07
Joined
Aug 11, 2003
Messages
11,695
why physicaly access the database? Use linked tables to access the customer table directly without actually "touching" the database.
 

HiTechCoach

Well-known member
Local time
Today, 09:07
Joined
Mar 6, 2006
Messages
4,357
I agree with namliam.

If at all possible, use linked tables to read the data you need. If you have access to the other front end (/mdb/.accdb) or non-split database, then you could import the object (forms, query, etc) needed to display the required data.

Linked tables would allow the elegant solution of displaying data from the other database on your existing form in a subform control Would that make the users really happy and more productive?
 

Users who are viewing this thread

Top Bottom