G
Guest
I am trying to write code for the Activate event of a form. I create the
Activate event as usual. It looks like this:
Private Sub Form_Activate()
End Sub
As you can see, there's nothing in the event yet. When I try to open the
form, I get the following message:
The expression On Activate you entered as the event property setting
produced the following error: Duplicate Option statement.
* The expression may not result in the name of a macro, the name of a
user-defined fuction, or [Event Procedure].
* There may have been an error evaluating the function, event or macro.
If I delete the above code, the form opens normally. The same error occurs,
with slightly different wording, when I try to code FormOpen or FormLoad
events instead of FormActivate.
I have tried moving all code and objects to a new form -- the same thing
happens.
I have tried repairing and compacting -- the same thing happens.
I have tried opening a new database and moving all code and objects -- no
dice.
Any ideas? TIA!!
Activate event as usual. It looks like this:
Private Sub Form_Activate()
End Sub
As you can see, there's nothing in the event yet. When I try to open the
form, I get the following message:
The expression On Activate you entered as the event property setting
produced the following error: Duplicate Option statement.
* The expression may not result in the name of a macro, the name of a
user-defined fuction, or [Event Procedure].
* There may have been an error evaluating the function, event or macro.
If I delete the above code, the form opens normally. The same error occurs,
with slightly different wording, when I try to code FormOpen or FormLoad
events instead of FormActivate.
I have tried moving all code and objects to a new form -- the same thing
happens.
I have tried repairing and compacting -- the same thing happens.
I have tried opening a new database and moving all code and objects -- no
dice.
Any ideas? TIA!!