G
Guest
I've got a form that open in Edit mode. The CustID field is locked out
(Enabled = No and Locked = Yes) in order to prevent people from changing the
key field. When the user clicks Add they must manually specify a unique
key field, so the CustID must be enabled and unlocked. That is the purpose
of this code, but I'm getting a 438 object doesn't support this property or
method error. What am I doing wrong?
DoCmd.GoToRecord , , acNewRec
With Me!CustID
.Enabled = True
.Locked = False
.TabStop = True
.SetFocus = True
End With
(Enabled = No and Locked = Yes) in order to prevent people from changing the
key field. When the user clicks Add they must manually specify a unique
key field, so the CustID must be enabled and unlocked. That is the purpose
of this code, but I'm getting a 438 object doesn't support this property or
method error. What am I doing wrong?
DoCmd.GoToRecord , , acNewRec
With Me!CustID
.Enabled = True
.Locked = False
.TabStop = True
.SetFocus = True
End With