I have a subform based on a query. The orders form opens with a customer up and the user can see all orders placed by the given customer in this sub form.
Problem: sometimes this form appears blank and I've noticed to get the form to appear correctly I have to reset the following (subform)form properties to True. AllowEdits/AllowAdditions/ AllowDeletions/ DataEntry.
1.) Why would this form suddenly change its properties to = fase/no. (problem occurs mostly using Access97 on a Win95 system)
2.) The fix I tried is below, but being new to VBA I'm not confident it is even executable. Does the VB look good for OnLoad? If not, any other suggestions?
Problem: sometimes this form appears blank and I've noticed to get the form to appear correctly I have to reset the following (subform)form properties to True. AllowEdits/AllowAdditions/ AllowDeletions/ DataEntry.
1.) Why would this form suddenly change its properties to = fase/no. (problem occurs mostly using Access97 on a Win95 system)
2.) The fix I tried is below, but being new to VBA I'm not confident it is even executable. Does the VB look good for OnLoad? If not, any other suggestions?
Code:
Private Sub Form_Open(Cancel As Integer)
AllowEdits = False
AllowDeletions = False
AllowAdditions = True
DataEntry = True
End Sub