You receive a "Compile error" error message in your Visual Basic 6.0 Service Pack 5 project when you run data from code that is generated by the Data Form Wizard (827049)
The information in this article applies to:
- Microsoft Visual Studio 6.0 SP5
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
SYMPTOMSIn a Microsoft Visual Basic Standard EXE project, you can use the Data Form Wizard to add a data form that connects to Microsoft Access 2000 or a later version. When you run the Visual Basic Standard EXE project, you may receive the
following error message: Compile error:
Procedure declaration does not match description of event or procedure
having the same name RESOLUTIONTo resolve this problem, remove the reference to Microsoft ActiveX Data Objects 2.0 Library that the Data Form Wizard added and then add a reference to Microsoft ActiveX Data Objects 2.5 Library or a later version. To do this, follow these steps:
- On the Project menu, click
References.
- In the References - Project1 dialog box,
click to clear the Microsoft ActiveX Data Objects 2.0 Library
check box.
- Click to select the Microsoft ActiveX Data Objects
2.5 Library check box, and then click OK.
Note In this step, you can use Microsoft ActiveX Data Objects 2.5 or a later version, such as Microsoft ActiveX Data
Objects 2.6 or Microsoft ActiveX Data Objects 2.7. - On the Run menu, click
Start.
STATUS This
behavior is by design.REFERENCES
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
171215
HOWTO: Use Data Form Wizard to connect to remote data via
DAO
222145 PRB: ADO
data control events may generate a compilation error
Modification Type: | Major | Last Reviewed: | 12/18/2003 |
---|
Keywords: | kbDataBinding kbwizard kbCompiler kbDataEnv kbDatabase kbForms kbprb KB827049 kbAudDeveloper |
---|
|