MyProject.exe wtih ADO Data Control

Reply

Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

MyProject.exe wtih ADO Data Control

 
0
  #1
Apr 23rd, 2009
good day everyone! how can i distribute the exe application w/o using package and deployment wizard? i just made it executable. the problem is the the database path changes because i did not use the App.Path. I know how to use App.Path using ADODB, but with ADO Data Control, you can only set by means of setting the properties at design time (such as C:\Documents and Settings\Arvin\My Documents\My Files). Of course, if I distribute the exe, the specified path will no longer be the path. Or is it possible with App.Path. Any idea on how to solve this issue. Thank you for responses.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 762
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 134
vb5prgrmr vb5prgrmr is offline Offline
Master Poster

Re: MyProject.exe wtih ADO Data Control

 
0
  #2
Apr 24th, 2009
Originally Posted by arvin2006 View Post
good day everyone! how can i distribute the exe application w/o using package and deployment wizard?
You can't.

Originally Posted by arvin2006 View Post
i just made it executable. the problem is the the database path changes because i did not use the App.Path. I know how to use App.Path using ADODB, but with ADO Data Control, you can only set by means of setting the properties at design time (such as C:\Documents and Settings\Arvin\My Documents\My Files).
Yes you can set the properties of the ADODC in code. Just use the name of the ADODC (ADODC1) . (dot) the same property name that is in the property window = the setting you have.

Originally Posted by arvin2006 View Post
Of course, if I distribute the exe, the specified path will no longer be the path. Or is it possible with App.Path. Any idea on how to solve this issue. Thank you for responses.
If the database is meant for single user then you can use the app.path method or if you want you can use the common dialog to allow the user to navigate to the database to select it.

Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC