Red Book-Wrong Point

Example one

Establish ADO reference

To use the ADO object in the Visual Basic project to access the database, a reference to the ADO object library must be established

Engineering---Reference---Microsoft ActiveX Data Object 2.5 Library

Example two

To create an ODBC data source, there are generally two ODBC (64-bit and 32-bit) on the computer, you need to find Microsoft Access

Example three

Use Microsoft ADO Data Control 6.0 (OLEDB) control

Example four

The reason for the error: no reference to the ADO object to access the database,

Change to: Dim objRs As New ADODB.Recordset

Example 5

Solution: Just delete Option Explicit

Guess you like

Origin blog.csdn.net/weixin_45490023/article/details/106090320