M
Mark A. Sam
Hello,
I am using Visual Web Developer and the .net 2.0 framework. My intention is
to send an email then insert the form's field values into an Access Table.
I created a dataset called ContactFormData.xsd. I found code in Help, to
add date to a Typed Dateset. It seems like what I want but I can't recreate
it.
Code From Help:
Dim newCustomersRow As NorthwindDataSet.CustomersRow
newCustomersRow = NorthwindDataSet1.Customers.NewCustomersRow()
newCustomersRow.CustomerID = "ALFKI"
newCustomersRow.CompanyName = "Alfreds Futterkiste"
NorthwindDataSet1.Customers.Rows.Add(newCustomersRow)
My Code so farim newContactsRow As ContactFormData.tblContactForm1RowDim
ContactFormData1 As ContactFormDatanewContactsRow =
ContactFormData1.tblContactForm1.NewtblContactForm1Row()In the Code editor
the variable ContactFormData1 in line 3 of my code, is underlined with a
ControlTip message, "Variable 'ContactFormData1' is used before it has been
assigned a value. A null reference value could result at runtime."I Dim'd
ContactFormData1 becuase it needed to be declared even though this isn't in
the help example. I'm just blindly following the help example. Any help in
how to write this procedure is appreciated.God Bless,Mark A. Sam
I am using Visual Web Developer and the .net 2.0 framework. My intention is
to send an email then insert the form's field values into an Access Table.
I created a dataset called ContactFormData.xsd. I found code in Help, to
add date to a Typed Dateset. It seems like what I want but I can't recreate
it.
Code From Help:
Dim newCustomersRow As NorthwindDataSet.CustomersRow
newCustomersRow = NorthwindDataSet1.Customers.NewCustomersRow()
newCustomersRow.CustomerID = "ALFKI"
newCustomersRow.CompanyName = "Alfreds Futterkiste"
NorthwindDataSet1.Customers.Rows.Add(newCustomersRow)
My Code so farim newContactsRow As ContactFormData.tblContactForm1RowDim
ContactFormData1 As ContactFormDatanewContactsRow =
ContactFormData1.tblContactForm1.NewtblContactForm1Row()In the Code editor
the variable ContactFormData1 in line 3 of my code, is underlined with a
ControlTip message, "Variable 'ContactFormData1' is used before it has been
assigned a value. A null reference value could result at runtime."I Dim'd
ContactFormData1 becuase it needed to be declared even though this isn't in
the help example. I'm just blindly following the help example. Any help in
how to write this procedure is appreciated.God Bless,Mark A. Sam