Guest cgchris99 Posted August 27, 2002 Posted August 27, 2002 How can I use the same OLE db datasets between two forms. I have the main form then I have a lookup form. The lookup allows the user to search through the database and select a record. I then fill the dataset that is on the main form and the fields update fine. However, when I make a change to a field on the main form and attempt to save the data using myadapter.update(....) It doesn't work. I am wondering if it is because the adapter on the main form is not the same as the one on the lookup form. Any ideas? Thanks Quote
*Gurus* Derek Stone Posted August 27, 2002 *Gurus* Posted August 27, 2002 Either declare the adaptor as Shared in a separate class (similar to a Global variable in Visual Basic 6) or overload the form's constructor, passing it the adaptor when you load the second form. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.