Using xsd created from Data Sources

Posted on 2006-04-06
Last Modified: 2008-01-09
I have used Data Sources to create a xsd from a MDB table. I want to use the xsd as a datatype.

For example:

Dim Order as New OrderDataSet.OrderRow  ( where 'OrderDataSet' is a xsd created by Data Sources, so that I can refer to the columns like below )

Order.OrderNo = "#1"
Order.Date = "...."

However,  it shows this error "Argument not specified for parameter 'rb' of 'Friend Sub New(rb As System.Data.DataRowBuilder)" at the 'Dim Order....' statement!

So how can I use a xsd as a datatype to create a variable ?

Question by:tora111
    LVL 96

    Accepted Solution

    When dealing with adding rows, you need to go through the DataTable to add a row.

    This is an untyped DataSet example:
        Dim order As DataRow = table.NewRow()

    With typed DataSet's the syntax is different.  It will be something like this:
       Dim order As OrderDataSet.OrderRow = OrderTable.NewOrderRow()


    Author Comment

    Thanks Bob !

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 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

    20 Experts available now in Live!

    Get 1:1 Help Now