> when i use in my datamodule in the DataModuleCreate
> procedure:
> ConnectionString := '';
> ConnectionString :=
> 'Provider=Microsoft.Jet.OLEDB.4.0;Password=""'+
> ';User ID=Admin;'+'Data
> Source=H:\A\D\BkpRules.mdb;'+....{and so on]
> 
> Q= then where is this information stored? 
> i find some references in 
> the registry related to MsOffice and to Delphi.
> 
> I am wondering what happens when i copy a folder
> H:\A  to C:\A (with
> all the files) and open delphi from the C:\A folder
> and why the
> connectionstring still points to
> H:\A\D\BkpRules.mdb; and i get an error.
> i searched in a lot of good books and websites but
> cannot find a clue.

use this :

ConnectionString
='Provider=Microsoft.Jet.OLEDB.4.0;Password=""'+';User
ID=Admin;'+'Data
Source='+ExtractFilePath+'\'+(Application.exename)+'BkpRules.mdb;'+...

if your database in the same folder with your application.

Bayu Imbang L
Telp. (0281)634765  [home]
        (0274)511169  [ kost ]

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to