Solved

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

Posted on 2010-09-12
6
316 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now