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

Creating an exe

Status
Not open for further replies.

jpb

Programmer
Mar 31, 2001
17
IE
Hi everyone,

I have created a Vb application and have my exe which runs fine when run on the same machine it was created on. What do I have to do to allow this exe run on a different machine. It is connected to a microsoft access database which is on the same machine. I know I will have to save the database on the machine I want to run the exe on but how do I tell the exe where to look for the database. My project contains a lot of design time ado controls which all have a connection to the database. Surely there is some way to tell the exe to look in a different place for the database.

Any suggestions will be greatly appreciated ..

Thanks in advance.

jpb
 
Don't hard code the path of the database. Make the path dynamic. Rob Marriott
rob@career-connections.net
 
Thanks Rob,
But I am not too sure what you mean. If I am using ado controls at design time how am I going to hardcode the database path.Every time you create a design time control ado recordset, the connection string is asked for.

jpb
 
The ADO controls have properties that tell it where to find the database. In your form_load events dynamically set the paths these controls will look in using
App.Path & "\dbname.mdb" Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
you most first created a PDW of a Setup of your program and then install on another machiene of pc. (with include the database to the install program)

See the Help on VB6.0 ,distr a .exe) Eric De Decker
vbg.be@vbgroup.nl

License And Copy Protection AxtiveX.

Download Demo version on my Site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top