I have this code in the Open Event of a form:
Private Sub Form_Open(Cancel As Integer)
Me.BorderStyle = 1
End Sub
I get the error: To set this property open the form in Design View. I know this is only applicable in form view but I am in design view. Here are the steps I took:
1. I opened the form by double clicking it. I am in Form View.
2. I switched to Design view
3. I added the code above to the Open Event.
4. I came back to the form (still in Design View) and I attempt to change it to Form View so I can see how this works. Then I get the error.
So I was in Design View before I entered this code. What am I doing wrong?