G
Guest
The code below is on the open event of my form. For some reson the form opens
blank. If I go to form design and then go back to form view, it works as
planned. But when I close the form and then open it back up again it opens
blank again. On the form I have a pair of listboxes. If I comment out the
Me.AllowAdditions=False, then the form opens correctly, but then my listboxes
are still available to be clicked on which triggers events I have coded in
the listboxes (dblclk).
Please tell me why the Me.AllowAdditions = False cause this to happen? Is
there something else I can do?
Thanks, Rob
Private Sub Form_Open(Cancel As Integer)
Me.AllowEdits = False
Me.AllowAdditions = False
Me.AllowDeletions = False
End Sub
blank. If I go to form design and then go back to form view, it works as
planned. But when I close the form and then open it back up again it opens
blank again. On the form I have a pair of listboxes. If I comment out the
Me.AllowAdditions=False, then the form opens correctly, but then my listboxes
are still available to be clicked on which triggers events I have coded in
the listboxes (dblclk).
Please tell me why the Me.AllowAdditions = False cause this to happen? Is
there something else I can do?
Thanks, Rob
Private Sub Form_Open(Cancel As Integer)
Me.AllowEdits = False
Me.AllowAdditions = False
Me.AllowDeletions = False
End Sub