Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I open a report in a encrypted Access database from Visual Basic?

0
Posted

How do I open a report in a encrypted Access database from Visual Basic?

0

Because reports are not part of DAO, you must use automation to open a report. This will start an instance of Access. Dim lngReturn As Long Dim objAccess As Access.Application lngReturn = Shell(“C:\MSACCESS.EXE ” _ & “/wrkgrp c:\MyMDW.mdw /User username /Pwd password /Nostartup”) DoEvents Set objAccess = GetObject(, “Access.Application”) objAccess.OpenCurrentDatabase “c:\MyMDB.mdb”, False objAccess.DoCmd.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123