G
Guest
G'day all
I want to hide everything except a form on a desktop. So I've been to
http://www.mvps.org/access/api/api0019.htm and had a look at the code.
The trouble is that it's not working and I was wondering if someone could
please tell me what I am doing wrong.
WHAT I'M DOING
1) Selecting form that I want to show when the program starts up
2) Selecting "Design Form"
3) Opening "Properties" for the form
4) Going to "Other" and ensuring that "Pop-Up" is set to "Yes"
5) Going to "Event", "On Open", selecting "[Event Procedure]" and pressing
"..."
6) Cut and paste the code from the above link
7) Saving changes
WHAT'S HAPPENING
1) On pasting, the code the 4 lines of "Global Const - -" go red
2) The "End Sub" changes to "End Function"
3) When I click on the form, the following error comes up;-
"The expression On Open you entered as the event property setting produced
the following error: Only comments may appear after End Sub, End Function, or
End Property.
* The expression may not result in the name of a macro, the name of a
user-function, or [Event Procedure].
* There may have been an error evaluating the function, event or macro."
Thanks
I want to hide everything except a form on a desktop. So I've been to
http://www.mvps.org/access/api/api0019.htm and had a look at the code.
The trouble is that it's not working and I was wondering if someone could
please tell me what I am doing wrong.
WHAT I'M DOING
1) Selecting form that I want to show when the program starts up
2) Selecting "Design Form"
3) Opening "Properties" for the form
4) Going to "Other" and ensuring that "Pop-Up" is set to "Yes"
5) Going to "Event", "On Open", selecting "[Event Procedure]" and pressing
"..."
6) Cut and paste the code from the above link
7) Saving changes
WHAT'S HAPPENING
1) On pasting, the code the 4 lines of "Global Const - -" go red
2) The "End Sub" changes to "End Function"
3) When I click on the form, the following error comes up;-
"The expression On Open you entered as the event property setting produced
the following error: Only comments may appear after End Sub, End Function, or
End Property.
* The expression may not result in the name of a macro, the name of a
user-function, or [Event Procedure].
* There may have been an error evaluating the function, event or macro."
Thanks