L
Lloyd
When a user opens up a form to view it, I have the form and all subforms
locked using Allen Browne's method at http://www.allenbrowne.com/ser-56.html
which works great!
I ran into one problem however in my code that runs on the forms current
event. My code checks to see if a field is null or not on one of the
subforms. If there is data in the field it works fine, but when there is no
record in the subform, the first part of the code runs, as if it found data
in the MainDR field yet the form is locked and no data is there since no
record has yet been entered. Is there another way I can test to see if there
is data in the MainDR field
If Not IsNull(Forms!frmcaseupdate!subfrmRelatedDRs![MainDR]) Then
'MsgBox "dr is not empty"
Label113.Visible = True
Label114.Visible = True
Else
' MsgBox "dr is empty"
Label113.Visible = False
Label114.Visible = False
End If
locked using Allen Browne's method at http://www.allenbrowne.com/ser-56.html
which works great!
I ran into one problem however in my code that runs on the forms current
event. My code checks to see if a field is null or not on one of the
subforms. If there is data in the field it works fine, but when there is no
record in the subform, the first part of the code runs, as if it found data
in the MainDR field yet the form is locked and no data is there since no
record has yet been entered. Is there another way I can test to see if there
is data in the MainDR field
If Not IsNull(Forms!frmcaseupdate!subfrmRelatedDRs![MainDR]) Then
'MsgBox "dr is not empty"
Label113.Visible = True
Label114.Visible = True
Else
' MsgBox "dr is empty"
Label113.Visible = False
Label114.Visible = False
End If