Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO dc error when compiling...Procedure declaration does not match...

Status
Not open for further replies.

Gerbelem

Programmer
Jul 30, 1999
3
ZA
Hi Guys,<br><br><br>&nbsp;&nbsp;I have a problem that seems strange to me ( but then it always does :).<br>&nbsp;&nbsp;I'm using a ADO data control w/ VB6 and Jet 4.0.<br>&nbsp;&nbsp;When trying to run it gives the following error,<br><br>&nbsp;&nbsp;Compile Error:<br>&nbsp;&nbsp;Procedure declaration does not match description of event or procedure having the same name.<br><br>&nbsp;&nbsp;Now ! This is in a event generated by the ADODC control itself and here is the line where error occurs :<br><br>&gt;&gt;&gt;Private Sub datFResults_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset&lt;&lt;&lt;<br><br>&nbsp;&nbsp;Can someone get me out of my misery, please ?<br><br>&nbsp;&nbsp;Thanks for ur help<br><br>&nbsp;&nbsp;Germano<br>
 
<br>This is caused by a conflict in the procedure Definition and the procedure Declaration. The two need to be exactly the same. <br><br>Suggest using the drop down in the IDE (two drop downs, usually found at the top of the work area) for adding procedures for the Control that you are using vs. typing it in yourself.<br> <p>Amiel<br><a href=mailto:amielzz@netscape.net>amielzz@netscape.net</a><br><a href= > </a><br>
 
Thanks for ur try...but, this procedures are created when you put an ADO data control on your form. I merely use them and that's exactly what confuses me, coz they should be right if they are created automatically when I put the ADOdc on the form...Anyone knows the answer to this ? By the way I use VB6 with SP 3.0 and Jet 4.0 ( Access 2000 ).<br><br>Thanks<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top