|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Connection problem
im using vb to connect to microsoft access. but when i run the program, it say
compile error: invalid use of new keyword. and it also highlight this word "New Connection" from the below statement Set db = New Connection db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\..\ES Project\PersonalitySysRule.mdb;Persist Security Info=False" how to fix the problem? thanks |
|
#2
|
||||
|
||||
|
It should read:
Code:
Set db = New ADODB.Connection db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\..\ES Project\PersonalitySysRule.mdb;Persist Security Info=False" |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Connection problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|