Home > Software engineering >  Just declare a variable, where did I wrong?
Just declare a variable, where did I wrong?

Time:09-30

Has built a module in VB6, made the following statement:

Option Explicit

Public DBCON As ADODB. Connection

Sub main ()
DBCON. The ConnectionString="Provider=Microsoft. Jet. The OLEDB. 4.0; Data Source="& amp; App. The Path & amp; "\ DateBase \ gyzb MDB. Persist Security Info=False "
DBCON. Open
Frm_login. Show
End Sub

Why after running the following error message? Where the hell am I wrong?

CodePudding user response:

Why new once or not? I just open VB wrote this a few words will make a mistake, let me what about me!

CodePudding user response:

reference 1st floor zhouchengjie1983 response:
why new once or not? I just open VB wrote this a few words will make a mistake, let me what about me!

CodePudding user response:

To quote to call:
VB menu Project \ References... Open the dialog
Microsoft ActiveX Data Objects 2.5 Library are chosen, the OK button

CodePudding user response:

reference Tiger_Zhao reply: 3/f
to reference to call:
VB menu Project \ References... Open the dialog
Microsoft ActiveX Data Objects 2.5 Library are chosen, point the OK button


Thank you very much! That's true!
  • Related