D
DS
I have a field that is on several forms.
The field is called TxtManagerID.
I have a listbox to open any one of these forms.
I need to set the value of TxtManagerID on these forms so I thought this
code would work. Except I get an error message that I have to define a
class. Am I barking up the wrong tree or is there a simple solution to
this. Any help appreciated.
Thanks
DS
Dim stDocName As String
Dim stLinkCriteria As String
Dim stTxtManagerID As String
stDocName = Me.ListBackOffice.Column(1)
DoCmd.OpenForm stDocName, , , stLinkCriteria
stDocName!stTxtManagerID = Me.TxtManagerID
The field is called TxtManagerID.
I have a listbox to open any one of these forms.
I need to set the value of TxtManagerID on these forms so I thought this
code would work. Except I get an error message that I have to define a
class. Am I barking up the wrong tree or is there a simple solution to
this. Any help appreciated.
Thanks
DS
Dim stDocName As String
Dim stLinkCriteria As String
Dim stTxtManagerID As String
stDocName = Me.ListBackOffice.Column(1)
DoCmd.OpenForm stDocName, , , stLinkCriteria
stDocName!stTxtManagerID = Me.TxtManagerID