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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jet Engine Problems with executable file

Status
Not open for further replies.
Apr 22, 2003
14
US
I made a project in VB6 that i converted to an exe file. I am using the DB environent and reports in the project. I want to be able to transfer it to a disk and run the project from the disk. Now I read in a book how to make the DB env transferable by using app.path in the initialization code. I did that. Problem I am having is even on the machine that I created it on I am getting a screen that says Please Enter MS JET OLE DB Initialization Information.

DATA SOURCE: this has my path name in it

User Name: Admin

Password: Blank (no password on db)

Provider String: Blank

Open Mode: DB_MODE_Readwrite (I need it to be read only)

Does anyone know what might be happening? I don't understand why I'd get a jet error on the machine I created the programe with.
 
It looks like it needs to create the connection string for you. Did you do this anywhere in code?
 
I made the connection string in the properties of the connection. I also used this bit of code to (supposedly) make the project moveable.

Private Sub DataEnvironment_Initialize()
ConnData2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & App.Path & "\dataver2.mdb;"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top