>Eric,
>
>I am reading from an INI file using the GetPrivateProfileString...
>But when I put the value in the properties, I get an error on the application run; it reads that variable I placed in the property as text! and not a VB variable which I assgned as public as string which goes and retrieves the path from the INI.
>
>Maybe I'm forgeting something? I'm relativly new on VB...
>
>Thanks
I'm not sure that I understand what you say.
Do you have something like:
Data1.DatabaseName = YourVariable
Data1.Refresh
Refresh is important to force a connection using the new properties.
If I am wrong in what I reply, paste your code here stating your error and we will help.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com