Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to open a form in another db to interact with currentdb

Status
Not open for further replies.

LikeThisName

Vendor
Joined
May 16, 2002
Messages
288
Location
US

can anyone show me in psuedo code how i would open a form in another db. or suggestions on why not to bother with this approach.

so much to learn, thanks!



LikeThisName <- ? Sorry It's Taken =)
 
Dim db as new access.application

set db = CreateObject("Access.Application")

db.OpenCurrentDatabase pathname

db.DoCmd.OpenForm formname, acNormal, , , acFormEdit, acWindowNormal

db.Visible = True

I know you asked for psuedo code but I happened to have the code right in front of me. Remember to close the database that you connected to when finished with the form. Probably with On_Close event

Hope this helps

-Mike
 
even better, i wrote psuedo code, i meant code snippet

here's a star for being a mind reader =) and thanks for sharing.



LikeThisName <- ? Sorry It's Taken =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top