V
vmon via AccessMonster.com
I need to update a field on a mainform1!subform from a mainform2. I want
it to be generic so I can call mainform2 from several different forms and
set a textbox equal to a value on mainform2. This is what i am trying and
I get type mismatch.
I set both of these from the calling form. txtMainForm, txtSubForm
Dim myform As String
myform = Me.txtSubForm & "!" & Me.txtObject
Forms(txtMainForm!txtSubForm)!ID_UNIT = Me.ItemId
Any ideas?
it to be generic so I can call mainform2 from several different forms and
set a textbox equal to a value on mainform2. This is what i am trying and
I get type mismatch.
I set both of these from the calling form. txtMainForm, txtSubForm
Dim myform As String
myform = Me.txtSubForm & "!" & Me.txtObject
Forms(txtMainForm!txtSubForm)!ID_UNIT = Me.ItemId
Any ideas?