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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only