R
RobUCSD via AccessMonster.com
With the code below I want the form to allowAddtions if there are no previous
visits (records). qryVisitList is the record source for the sub form
frmVisits. When I go to a patient who has no previous visits, the form comes
up blank. I use this same code on the same form for a different purpose and
it works fine. Its in the current event.
Your help is greatly appreciated. Rob
If (DCount("*", "[qryVisitList]") < 1) Then
Me.Form.AllowAdditions = True
Else
Me.Form.AllowAdditions = False
End If
visits (records). qryVisitList is the record source for the sub form
frmVisits. When I go to a patient who has no previous visits, the form comes
up blank. I use this same code on the same form for a different purpose and
it works fine. Its in the current event.
Your help is greatly appreciated. Rob
If (DCount("*", "[qryVisitList]") < 1) Then
Me.Form.AllowAdditions = True
Else
Me.Form.AllowAdditions = False
End If