Getting an error: Procedure declaration does not match event

X

Xana

I am trying to make one combo box dependent on another in Access 2002. I
followed the instructions on this page:

http://office.microsoft.com/en-us/assistance/HA011730581033.aspx?mode=print

which had me copy code such as:

Private Sub Form_Load(Cancel As Integer)
Me.Category = Me.Category.ItemData(0)
Call Category_AfterUpdate
End Sub


But when I try to run any of the procedures I get the error message:

"The expression OnLoad you entered as the event property setting produced
the following error: Procedure declaration does not match description of
event or procedure having the same name"


I'm not that familiar with VBA, but I know a bit about programming...I
understand the message, I just don't understand why I'm getting it or how to
fix it.

Thanks!!!
-xana
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top