[Gambas-user] DataControl and "No current Connection" Error

Benoît Minisini gambas at ...1...
Sat Aug 29 21:03:25 CEST 2009


> Thanks, Benoit.
>
> But the database connection IS open, that's why I am confused.
>
> DataSource reads the table, and DataBrowser shows the data in the columns I
> set in properties. So, the connection seems to be not the problem.
> The only things that don't work are the DataControls. They always produce
> this "No current Connection".
>
> Or am I completely wrong??
> I open the database connection in the PUBLIC SUB Form_Open(), first thing.
> That's the earliest point I can imagine. 

You must open it before showing the form. Either you reimplement the public 
static Main function in your startup form, either you create a startup module 
for that. 

Regards,

-- 
Benoît




More information about the User mailing list