Hi experts,
I have a question about using macro to open another access from access. I do not know which action should I use and code to apply. Pls help
thks n regards
nuglorious
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » USING MACRO (A97)
thanks 4 yr prompt reply. The reason why i use access to open another access is because the other access has a link with the one im using now. So whenever i need to check 4 the updated data, I would open the other database directly instead of go to directory and look on my database.
I hope my explanation will give you an understanding …
Looking forward for your reply ….
nuglorious
thks for your suggestion but what i mean link here is no the direct link but by the file name from the second database i have created a make-up table in the query and copy to the main database. Which means whenever i update frm the second database table then i need to update to my first database table. Thts y i need to open the second database
Let me see if I understand. You have a main database and a second database. You’re using a maketable query to copy records or values from the second database to the main database, right? So why do you want to open the main database from a macro? And do you mean a macro in the Access sense or are you talking about code, because that’s what it takes.
You didn’t answer my question and you don’t have to use macros for a custom toolbar. Code works perfectly well. As for opening the other database, why? If you have a toolbar that lets you run a maketable query, why do you need to open the other database if the maketable query is in the one currently open?
Let me explain again.
Currently I have 2 database. The first one is my main database which is for inputing all the data in. the 2nd database is for the update rates which means if theres is a new rates or change rates so while im doing inputing, I will straight way open the 2nd database and update the rates. Once its done, I will click on the query and it will automatically update the rate onto the first database table. So thts how my 2 database working each other.
Now I want to open the 2nd database frm the 1st database using the customs toolbar. If you think by using macro is not appropreate, do you have any suggestion so that i could open database using toolbar?
Hopes this will gives u more clearer picture.
Looking forward for your reply
I don’t really understand why you have two databases in the first place if all you use the second one for is to store rates. Nor do I iunderstand why you need to open the second database at all or move data between the two databases. If you have a rates table in one database, you could easily attach that table to the other and do all your updating directly in a single database. It sounds to me like you’ve made this unnecessarily complicated. There may be reasons for doing it as you have described, but you haven’t explained what they are or given enough detail about what you’re doing to help us make sense of it.
I realize you want to open the second database from a custom toolbar, but what does that mean? Are you expecting to be able to open the second database and switch back and forth between them or what? There are ways to open another database in code, but they don’t necessarily make the other database visible to the user, so you must explain or there is no point in trying to make suggestions.
its not easy to explain it more in detail. I have to create the 2nd database as for rates because its not just only use for the 1st database but also for input with different types of input. So actually this 2nd database is a main thing for rates and it will be use with 2 other databases.
Anyway, its ok if no solution on this. I will think of other way to do it…
Thanks again of your prompt reply and concern…
regards
If you just want to open a specific Access database from the toolbar then create a macro using the RunApp command. You will need to give the path to your Access file as well as the path for the Data base in the Command Line box. for example:-
“C:Program FilesMicrosoft OfficeOfficeMSACCESS.EXE” “C:reportsReport1.mdb”
HTH
Peter
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications