Hi all
This is really strange. I have the following code in an 'on click' sub to open up a form on an access database. But as soon as the database opens and loads the form it then shuts down. I can't see why and no other code is running and there are no macros on the database. If I open the database manually it is fine.
Im using VB6
Thanks
Tim
This is really strange. I have the following code in an 'on click' sub to open up a form on an access database. But as soon as the database opens and loads the form it then shuts down. I can't see why and no other code is running and there are no macros on the database. If I open the database manually it is fine.
Code:
Dim X As Access.Application
Set X = New Access.Application
X.OpenCurrentDatabase ("C:\PaperWork.mdb")
X.Visible = True
X.DoCmd.RunCommand acCmdAppMaximize
X.DoCmd.OpenForm "Paperwork Log Queries", acNormal
X.DoCmd.Maximize
Im using VB6
Thanks
Tim