public variables used in combo box

J

Jerry Mc Cauley

Good evening,

In a module I set up a Public variable as UID_Station (as String) and I use
this in most of my reports and forms with a problem ...

but then there is this one place ....

I am trying to use the variable in the property of field that I am setting
to a combo box. when I do --- the form asks for the variable when I open the
form. This is NOT what I want.

Amy ideas?

Thanks

Jerry
 
K

Ken Snell \(MVP\)

Write a public function that returns the value of the public variable:

Public Function GetUID_Station() As String
GetUID_Station = UID_Station
End Function

Then use the function in your control's property setting.
 
Top