Event Property: type not defined

  • Thread starter Thread starter John T. Riordan
  • Start date Start date
J

John T. Riordan

Using Access 2002 with Windows XP

My form is producing the following error dialog when
opening and when changing from design view to form view:

"The expression SelChange you entered as the event
property settings produced the following error: User-
defined type not defined."

I get a similar dialog after I click OK two times stating
the same but instead of 'SelChange' it says 'MouseMove'.
When I click through on OK the form begins to function
normally.

I have checked all the event procedures and none of them
include these expressions. I basically have two event
procedures for two identical controls:

****
Private Sub Trett_CommentFMS_GotFocus()
Me.Dirty = True

End Sub
****

and

****
Private Sub Form_BeforeUpdate(Cancel As Integer)
'Assign the text representation to the text field
[Statement] = [StatementFMS].Text

[Trett Comment] = [Trett CommentFMS].Text

End Sub
****

Does anyone know what may be going wrong? This form
worked fine in another database which was copied for this
database.

I have checked the References and the correct ones seem
to be ticked.

Thanks in advance for your help,
John T. Riordan
Trett Consulting b.v.
www.Trett.com
 
John said:
Using Access 2002 with Windows XP

My form is producing the following error dialog when
opening and when changing from design view to form view:

"The expression SelChange you entered as the event
property settings produced the following error: User-
defined type not defined."

I get a similar dialog after I click OK two times stating
the same but instead of 'SelChange' it says 'MouseMove'.
When I click through on OK the form begins to function
normally.

That message normally means that something has been entered
into the form's (or a subform) property sheet for one of the
On<someevent> properties. Either the macro doesn't exist,
the function is not preceeded by an = sign or there is a
compile error somewhere in the module.

I have checked all the event procedures and none of them
include these expressions. I basically have two event
procedures for two identical controls:
[snip]

Does anyone know what may be going wrong? This form
worked fine in another database which was copied for this
database.

First, try to compile and save all modules. If that doesn't
locate any problems an the above things all check out OK,
then I would suspect that the mdb has become corrupted.
 
Back
Top