hello any help me to open and run ms access mdb file with access-report and access-form
mukund_Sadrani 0 Newbie Poster
Recommended Answers
Jump to PostHi,
Reference a "Microsoft Access" Object library in your Project and try this code:
Dim MyAcc As New Access.Application MyAcc.OpenCurrentDatabase "C:\MyDb.mdb" , True MyAcc.DoCmd.OpenReport "MyReportName", acViewPreview 'Open Form MyAcc.DoCmd.OpenForm "MyFormname" 'Quit access MyAcc.Quit Set MyAcc = Nothing
Regards
Veena
Jump to PostHi,
Welcome, Mark the thread as "Solved"
Regards
Veena
All 5 Replies
choudhuryshouvi 33 Posting Pro
mukund_Sadrani 0 Newbie Poster
QVeen72 104 Posting Shark
mukund_Sadrani 0 Newbie Poster
QVeen72 104 Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.