B
Bill R via AccessMonster.com
I've looked through about a dozen posts on this subject but can't find an
adequate explanation for my particular situation. When I look at the values
and properties for the object (txtStatus) on the mainform (Parent) from the
immediate window while the code in the subform is running, I get the
appropriate values. Yet I get this error msg when I try to update the value.
Here's the code:
Private Sub Form_Current()
With Me.Parent.Controls("txtStatus")
.Locked = False
.Value = SetDesStatus 'function that returns a string
.Locked = True
End With
End Sub
When the SetDesStatus function runs, I get the error msg upon return to the
line ".Value ="... and if I continue to run the code, it will run the
function again and return the same error again and debug to the same line
again.
Bill
adequate explanation for my particular situation. When I look at the values
and properties for the object (txtStatus) on the mainform (Parent) from the
immediate window while the code in the subform is running, I get the
appropriate values. Yet I get this error msg when I try to update the value.
Here's the code:
Private Sub Form_Current()
With Me.Parent.Controls("txtStatus")
.Locked = False
.Value = SetDesStatus 'function that returns a string
.Locked = True
End With
End Sub
When the SetDesStatus function runs, I get the error msg upon return to the
line ".Value ="... and if I continue to run the code, it will run the
function again and return the same error again and debug to the same line
again.
Bill