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?
 
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
0
 
tora111Author Commented:
Thanks Bob !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.