hi
i have a program with MS access database
after i publish and install the program at the other PC
where i can edit the database without re-publishing the program
thx for your attention
hunb
hi
i have a program with MS access database
after i publish and install the program at the other PC
where i can edit the database without re-publishing the program
thx for your attention
hunb
after publish the program, if i wanna change the data from Access database, where i can edit it?
Haroonm
Review -
http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.startuppath.aspx
Eg. Where db is published to sub directory data.
Dim MyDBPath As String = Application.StartupPath & "\data\mydb.mdb"rgds,
Martin.
lord_8
Hi,
Could you please elaborate on this a little more Do you mean you want to edit your database's structure If so, you can just open your Access File and change your structure.
cheers,
Paul June A. Domag
dn8
actually i just wanna change some data from database
normally from VB6, i can just open the access database under program files
but now, i don't know where i can open the access database (after i publish the program)
thx for your attention
many thx
hunb
Frank the Tank
yes
access database has been installed already
after installation, where will the database be located
thx for your help
M. Houy
Hi,
Normally it is accompanied with your exe. But since you are the one who created the program then you must know where you are placing your database. Just check your connectionstring. It contains the path of your database.
cheers,
Paul June A. Domag
yongsan
Hi,
I guess your target computer doesn't contain an Access program. You must install Microsoft Access to be able to open and change data in your database.
cheers,
Paul June A. Domag
A fish
Hi,
No, its not advisable to hardcode the applicaiton path since application paths varies per computer. Say, a user might install your program in D:\program files instead in C:\. Hardcoded application paths would generate an error.
I suggest implementing what mokeefe posted or you can just place it in the same file as your exe and refer to it straightly by using its filename rather that providing paths...
cheers,
Paul June A. Domag
Malik Faisal
so can i hard code the application path
(ie c:\program files\...)
thx
hidy
Mr Cai