Hi karthik,
yes you can use app.path ti resolve your connection problem,
we can use it from where ever you need, it takes the application folder path as App.path
that is your Database should placed on the folder where you placed your application.
With addition use can use Subfolder names for example
Quiz is Your application folder name,you placed your Database in the Subfolder "Data"
D:\Quiz\data
in this case
ucan use
App.path & "\Data\Db1.mdb"
unless the palce the Db in Application folder itself and use your code App.path & "\Db1.mdb"
I hope this will help you
With regards
Venkatramasamy SN
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12
Hi Karthik
Use module
and define it in the module,
yo cann access the module from anywhere
With regards
Venkatramasamy SN
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12
Hi karthik,
In the module write your code in function
the funcation can be accessed from anywhere in the project by using Mudulename.functionname
for example]
Your module name is DBCon
And Functionname is Connection
The code to access the function is
[code]
DBCon.Connection
[\code]
Hope this will help you
With regards
Venkatramasamy SN
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12
ok,
then you must place/paste your project in the "E:\LATEST" location in which system you are using ther with, if the problem still exists, kindly send me the details of the sequence details from begining what you do , what you get and what you want
with regards
Venkatramasamy SN
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12
Hi,
Why you failed to notify the error and let me ask you the error details, just directly post all error details getting ok,
then only we can understand your problem in right path,
With regards
Venkatramasamy SN
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12