Okie, I have found the problem. The problem is that I didn't open the table in Load event of the form class. It runs well if I'm dealing with one table in the form. But the problem is that I'm using data from 2 tables in the class. So in the Load event, I put :
use table1
use table2
And I think this doesn't make sense.
So how do I need to make this out? Perhaps should I just use this first form class (only dealing with data for table1) as the base class for another form class (dealing with the data for table2) . So that, I can load 2 tables in my Load event?
>I doubt you are getting the same error as you reported before changing your calling syntax. What error are you getting?
>
>If ou want to have bound controls in a form class then you have to make sure that the tables are opened from the load event of the form, because form classes don't have DataEnvironments.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement