J
JIM
I tried this code, found in discussion group, on the OnLoad event of my
subform and I get message "No Parent". The desired result is that subform
does not allow edits. What am I missing? Am using Access 2000.
Thanks, jim
Dim mStr As String
On Error Resume Next
mStr = Me.Parent.frmWorkOrders
If Err.Number > 0 Then
MsgBox "no parent"
me.AllowEdits = true
Else
MsgBox "has parent"
me.AllowEdits = false
End If
subform and I get message "No Parent". The desired result is that subform
does not allow edits. What am I missing? Am using Access 2000.
Thanks, jim
Dim mStr As String
On Error Resume Next
mStr = Me.Parent.frmWorkOrders
If Err.Number > 0 Then
MsgBox "no parent"
me.AllowEdits = true
Else
MsgBox "has parent"
me.AllowEdits = false
End If