S
Silvio
In my case, I have a form with a subform. The subform was populated by a
query. User should be able to view and enter new records but should not be
able to edit existing records. Each record has several fields; the important
one is [Rate] and [Type]. If data is entered in [Rate] and [Type] then that
record or these two fields should be locked for editing.
I tried to do something like this…
I did this by adding VB code to the LostFocus() event of [Type] field.
Private Sub Charge_Type_LostFocus()
If Not IsNull(Me.Rate) and Not isNull(me.Type) Then
Me.Rate.Enabled = False
Me.Type.Enabled = False
End If
End Sub
As you can expect, this will lock all the record in the list including the
ability to enter new records from the bottom of the list. Id there any
relatively simple way to handle this?
query. User should be able to view and enter new records but should not be
able to edit existing records. Each record has several fields; the important
one is [Rate] and [Type]. If data is entered in [Rate] and [Type] then that
record or these two fields should be locked for editing.
I tried to do something like this…
I did this by adding VB code to the LostFocus() event of [Type] field.
Private Sub Charge_Type_LostFocus()
If Not IsNull(Me.Rate) and Not isNull(me.Type) Then
Me.Rate.Enabled = False
Me.Type.Enabled = False
End If
End Sub
As you can expect, this will lock all the record in the list including the
ability to enter new records from the bottom of the list. Id there any
relatively simple way to handle this?