Question Locked

Add Connection: Access Database Visual Basic Express 2005

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I tried to connect my An Access Database to Visual Basic Express 2005. I tried all the methods given under help. And have failed. I get an error message: "Format of the initialization string does not conform to specification starting at index 0."
It works fine with the SQl Server 2005 that comes with VB.

Grateful for a solution.

2 replies

by echizengwe

use the following syntax
dim db as database
dim rs as recordset
form load
set db=opendatabade("c:\xxxx
set rs=db.recordsource("name of table")

so easy

This discussion is closed to new replies.