Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Public Enum MyControl

Status
Not open for further replies.

rgbanse

MIS
Jun 4, 2001
211
US
In Access97 the following ends with Compile Error
Expected: Identifier

Public Enum ScaleControlsWhen
scAtLoad = 1
scYes = -1
scNo = 0
End Enum

Any help will be appreciated
thx
RGB
 
Hi

What are you trying to do?

Write a subroutine perhaps:

Public Sub ScaleControlsWhen()
scAtLoad = 1
scYes = -1
scNo = 0
End Sub

or a Function

Public Function ScaleControlsWhen() As Boolean
scAtLoad = 1
scYes = -1
scNo = 0
ScaleControlsWhen = True
End Sub

Hope this helps

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
I took some code out of an Access 2k database that would allow a form to dynamically resize itself when the window size was changed. Works great in 2k. When I compile the mods in 97,I get the above error message.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top