hi, i have created a field in a source table for a form. the field's name is Form_Flag, it's in a table for the 'Registration' form which happens to be called 'Registration' as well. with that out of the way, i wrote some code in the OnCurrent event property
Private Sub Form_Current()
If Me.Form_Flag = True Then
Me.AllowEdits = False
Me.EnableEditsBtn.Visible = True
Else
Me.AllowEdits = True
Me.EnableEditsBtn.Visible = False
End If
End Sub
which the compiler's balking about when it gets to 'Form_Flag'; it tells me "Method of Data member not found". true i don't have Form_Flag on the 'Registration' form, but i was led to believe by a trusted source that that wasn't necessary.
can anybody tell me what's going on?
“The philosophy of the school room in one generation will be the philosophy of government in the next." --- Abraham Lincoln
Private Sub Form_Current()
If Me.Form_Flag = True Then
Me.AllowEdits = False
Me.EnableEditsBtn.Visible = True
Else
Me.AllowEdits = True
Me.EnableEditsBtn.Visible = False
End If
End Sub
which the compiler's balking about when it gets to 'Form_Flag'; it tells me "Method of Data member not found". true i don't have Form_Flag on the 'Registration' form, but i was led to believe by a trusted source that that wasn't necessary.
can anybody tell me what's going on?
“The philosophy of the school room in one generation will be the philosophy of government in the next." --- Abraham Lincoln