G
Guest
Hi:
I'm fairly stuck on writing data to a field which is pointed to by a variable. Code looks like this:
---------------------------
Dim myfield As Control
mytext = Combo27
mystring = "M" & mytext
Forms!contacts!Outputfield = mystring
Set myfield = Forms!contacts!Outputfield
DoCmd.GoToControl myfield
myfield = "ZZZ"
I'm fairly stuck on writing data to a field which is pointed to by a variable. Code looks like this:
---------------------------
Dim myfield As Control
mytext = Combo27
mystring = "M" & mytext
Forms!contacts!Outputfield = mystring
Set myfield = Forms!contacts!Outputfield
DoCmd.GoToControl myfield
myfield = "ZZZ"