public variables used in combo box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

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.

Ask a Question

Back
Top