T
tw
Where would I put code for a constant that I want available throughout the
entire access program, not just a specific module or form?
entire access program, not just a specific module or form?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Graham R Seach said:Constants don't have declarative datatypes, therefore, you can't say:
Public Const MYCONSTANT As Integer
tw said:thanks, I'll try again.
If I put
public const OneDozen as Integer = 12 in a standard module
(which is where I had it orig when it didn't work, but I think I was
trying to access it on a form control)
then I put in the form's code on open or on load
me.controlname.value = OneDozen
will that work?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.