Alright, I'm having major troubles adding information to a database. Actually, I think the information is being added, it just isn't stored. I am writing a billing systems program. I am working with a table called billtable. The info I am trying to store to the table come off of a form and are text boxes. Some of the fields are "Customer, Pick up and Drop off location, Dimensions of the freight being shipped..." After the user clicks a save button, this is the code that is being run through:
Dim newRow As BillingDataSet.billTableRow =
Me.BillingDataSet.billTable.NewRow()
newRow.customer = customer.Text
newRow.pickup = Pup.Text
newRow.dropoff = Doff.Text
newRow.driver = driver.Text
newRow.truck = truck.Text
newRow.pieces = pieces.Text
newRow.length = length.Text
newRow.width = widthbox.Text
newRow.height = heightbox.Text
newRow.POD = pod.Text
newRow.rate = rate.Text
newRow.fuelsur = fSur.Text
newRow.comments = comments.Text
newRow.dateadded = My.Computer.Clock.LocalTime.ToShortDateString
Me.BillingDataSet.billTable.Rows.Add(newRow)
The code on the right hand side of the store symbol is the text box text. On the left is the table fields. I used a VB.net snippet that added data to a table. Please tell me what is wrong with my code.
Sincerely,
Crzy Prgmr
Dim newRow As BillingDataSet.billTableRow =
Me.BillingDataSet.billTable.NewRow()
newRow.customer = customer.Text
newRow.pickup = Pup.Text
newRow.dropoff = Doff.Text
newRow.driver = driver.Text
newRow.truck = truck.Text
newRow.pieces = pieces.Text
newRow.length = length.Text
newRow.width = widthbox.Text
newRow.height = heightbox.Text
newRow.POD = pod.Text
newRow.rate = rate.Text
newRow.fuelsur = fSur.Text
newRow.comments = comments.Text
newRow.dateadded = My.Computer.Clock.LocalTime.ToShortDateString
Me.BillingDataSet.billTable.Rows.Add(newRow)
The code on the right hand side of the store symbol is the text box text. On the left is the table fields. I used a VB.net snippet that added data to a table. Please tell me what is wrong with my code.
Sincerely,
Crzy Prgmr
Last edited: