Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC to MDB on a CD ?

Status
Not open for further replies.

Johnny42

Technical User
Jul 13, 2004
127
CA
1-
This works fine from an Excel Mudule:

Dim CNN As New ADODB.Connection
Dim rs As New ADODB.Recordset

a="some description"
CNN.Open "VVSHOW"

Set rs = CNN.Execute("SELECT ""DESC"",CATEGORY,ITEMNO ,COMMENT1,COMMENT2 FROM items WHERE (""DESC"" Like '%" & a & "' And ITEMNO Not Like ('%[A-Z]%')and COMMENT3='VHS')")
MsgBox rs!DESC
rs.Close
Set rs = Nothing
CNN.Close
Set CNN = Nothing

However when I tried to open the connection with this :
CNN.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
db_file & ";"
I get EOF error !

can anyone tell me why ?

2- can I burn my excel project and MDB file on a cd and run from CD ? ( I only need to read data from the data base)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top