> 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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user