Using xsd created from Data Sources

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 ?

tora111Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
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()

Bob

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tora111Author Commented:
Thanks Bob !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.