We use an Acess Database as a menu of Access Databases. It worked fine until we switched to Office 2007 from 2003. Code is below:
=============== =============== ============
The requested database closes at "Exit Sub" step under Exit_Disclosure QAOpen_Click:
We do not want the requested database to closed until closed by the user. Then return to Access Menu database.
Code:
Private Sub DisclosureQAOPen_Click()
On Error GoTo Err_DisclosureQAOPen_Click
Dim AccApp As Access.Application
Dim str As String
str = "\\Fanniemae.com\corp\DC\Shared\MF\MBS\GenDisc\Monitoring\QA\Disclosure QA.mdb"
Set AccApp = New Access.Application
With AccApp
.OpenCurrentDatabase str
.Visible = True
End With
Exit_DisclosureQAOPen_Click:
Exit Sub
Err_DisclosureQAOPen_Click:
MsgBox Err.Description
Resume Exit_DisclosureQAOPen_Click
End Sub
The requested database closes at "Exit Sub" step under Exit_Disclosure QAOpen_Click:
We do not want the requested database to closed until closed by the user. Then return to Access Menu database.
Comment