Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CustomerDataSet is not a member of sa.Form1  [vb 2008 to SQL 2008 connection issue]

Posted on 2010-09-12
6
Medium Priority
?
333 Views
Last Modified: 2013-11-27
Program used: Visual Studio 2008 Standard edition using Visual Basic 2008
Database used: SQL Server 2008 Developer edition
Problem to be solved: error message on line of code in project “sa” Form1
Data sources are CustomersDataSet & OrdersDataSet  and both are visable under the Data Sources window.
The code:
Me.TableAdapterManager1.UpdateAll(Me.CustomerDataSet)    

The error message is:
CustomerDataSet is not a member of sa.Form1

DataSetError.pdf
0
Comment
Question by:jampost
  • 4
  • 2
6 Comments
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33659792
Instead Of CustomerDataset use CustomerDataset1
u are using TableAdapterManager1 with CustomerDataset
Replace it with
Me.TableAdapterManager1.UpdateAll(Me.CustomerDataSet1)    
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33659814
You have 2 set of everything ..
2 Table adapter manager ,2 datasets,2 bindinsources
So or use:
Me.TableAdapterManager1.UpdateAll(Me.CustomerDataSet1)    
or
Me.TableAdapterManager.UpdateAll(Me.CustomerDataSet)
 
0
 

Author Comment

by:jampost
ID: 33662799
Thank you "itoutou",

You are right about 2 sets of everything. I tried eliminating the extra one and things stop working.
I tried:

Me.TableAdapterManager.UpdateAll(Me.CustomerDataSet)
 
Me.TableAdapterManager1.UpdateAll(Me.CustomerDataSet1)

 I also tried both of those lines with customers instead of customer, eliminating the 1 on one end and having it on the other.
 It looks like the answer is elsewhere in the program. I was just thinking that the error message might give a clue.  I guess if it were easy, everybody would be programers.

 
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 2000 total points
ID: 33662849
It Happens...!!My suggestion is to rebulid this part of your program.you might have a problem with vb.designer .
0
 

Author Closing Comment

by:jampost
ID: 33663197
    I suppose it is like restarting the PC. it fixes everything. I deleted everything for the Customer and reinstalled the comboBox from the Data Source which automatically installed all the Binding source, Data set, table adapter and table adapter manager. error gone. Thank you.
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33663226
Glad i helped you!!
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question