Link to home
Start Free TrialLog in
Avatar of dick3677
dick3677

asked on

Open and display an Access 2000 Database

The Following is my code for this event:

Private Sub cmdOpenDatabase_Click()
Dim x As Object

On Error Resume Next
Set x = GetObject("G:\Common\AnnuityGeneralServices\DailyVarianceSystem\Variance.mdb")
If x Is Nothing Then
  'if you get here, the database is not available or Access is not installed!
 
Else
  x.Visible = True
End If

End Sub

When it executes you can see the Splash screen for the database flash for just a fraction of a second and then it closes the Database.  Can you help?
ASKER CERTIFIED SOLUTION
Avatar of shivsa
shivsa
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Howard Cantrell
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from dick3677 from 12/10/2003 comment
Award points to shivsa(50%) and vinnyd79(50%) is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer