So this is probably a dumb question but Im having issues getting it set up right.
I will be using a certain code multiple times on various forms so Im trying to set it up to be as easy as possible to move it to a different form so Im using more variables then Im used to... that way I can edit a variable and have it affect the whole code easier.
My problems is with a form element... I want to be able to set a variable to a form element and have it functional.
So if I were to set say Form_Listbox = Me.publist how would I go about using that in the code to for instance.. Requery
Heres an example:
So if I wanted to change the Me.publistList into a variable how would I change those 2 lines of code so it reads my variable correctly?
I will be using a certain code multiple times on various forms so Im trying to set it up to be as easy as possible to move it to a different form so Im using more variables then Im used to... that way I can edit a variable and have it affect the whole code easier.
My problems is with a form element... I want to be able to set a variable to a form element and have it functional.
So if I were to set say Form_Listbox = Me.publist how would I go about using that in the code to for instance.. Requery
Heres an example:
Code:
Dim Form_Listbox As String
Form_Listbox = Me.publistList
Me.publistList = Null
Me.publistList.Requery
So if I wanted to change the Me.publistList into a variable how would I change those 2 lines of code so it reads my variable correctly?