i am using the following code for opening the connection
it work fine but only when i place a database on D:\graph\Sales. mdb
i want that it should work even i install my project on any directory or in any folder.
i know there is somting i had to use APP PATH\sales.mdb insted of D:\graph\Sales. mdb which can solve this but i just forget
it and not getting the correct code
Code:
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\graph\Sales.mdb;Persist Security Info=False"
i want that it should work even i install my project on any directory or in any folder.
i know there is somting i had to use APP PATH\sales.mdb insted of D:\graph\Sales. mdb which can solve this but i just forget
it and not getting the correct code
Comment