H
HANA
i'm useing Access 2002 & wanted my database to display only the form window
when users open it,
without showing the user the Microsoft Access window in the background and
here what i did:
1-I Copied the code from the web site and paste it in a new module. Saved the
module & named it "basSetAccessWindow".
2-Create a form.
3- Set its PopUp property to Yes, Set its Modal property to Yes.
4-in the form's module i did this:
'----- start of form module code -----
Option Compare Database
Option Explicit
Private Sub Form_Close()
fSetAccessWindow SW_SHOWNORMAL
End Sub
Private Sub Form_Open(Cancel As Integer)
Me.Visible = True
DoEvents
End Sub
my problem is that when i finsh my work there is alwayes problem in this
code
"fSetAccessWindow SW_HIDE"
i want to know wher is the wrong in my steps , i will appreicated any help
when users open it,
without showing the user the Microsoft Access window in the background and
here what i did:
1-I Copied the code from the web site and paste it in a new module. Saved the
module & named it "basSetAccessWindow".
2-Create a form.
3- Set its PopUp property to Yes, Set its Modal property to Yes.
4-in the form's module i did this:
'----- start of form module code -----
Option Compare Database
Option Explicit
Private Sub Form_Close()
fSetAccessWindow SW_SHOWNORMAL
End Sub
Private Sub Form_Open(Cancel As Integer)
Me.Visible = True
DoEvents
End Sub
my problem is that when i finsh my work there is alwayes problem in this
code
"fSetAccessWindow SW_HIDE"
i want to know wher is the wrong in my steps , i will appreicated any help