From: Highlight between 3 fields on
Hello

I want make code on global for whole project as this:

Dim AA As Integer

When I past it in modul under "Option Compare Database" so it be only of
this modul.
I can not change the value on any form, Ex.

Private Sub Kommand11_Click()
AA = 2
End Sub

So where I have to past
Dim AA As Integer
to make it available for the whole project?

Thanks for any comment.
From: BruceM via AccessMonster.com on
Declare it as a public variable:

Public AA as Integer


Highlight between 3 fields wrote:
>Hello
>
>I want make code on global for whole project as this:
>
> Dim AA As Integer
>
>When I past it in modul under "Option Compare Database" so it be only of
>this modul.
>I can not change the value on any form, Ex.
>
> Private Sub Kommand11_Click()
> AA = 2
> End Sub
>
>So where I have to past
> Dim AA As Integer
>to make it available for the whole project?
>
>Thanks for any comment.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201003/1

From: Highlight between 3 fields on
Thank you for your help.