lorena
Well-known member
I am working on a windows form with a sql database that has several fields that have spaces in their names (NOT my idea or design but there it is). When the form loads, I want to bind the fields from the datarow to the controls on the form. I am running into problems because of the spaces.
Here is my code:
None of the things I have tried worked and I would appreciate any help.
Thanks
Here is my code:
Code:
guestDataRow = aGuestsDataSet.Guests.FindByPhone(phoneString)
With Me
.firstNameTextBox.Text = guestdatarow![first name].tostring
.streetTextBox.Text = guestDataRow!street.ToString
.cityTextBox.Text = guestDataRow!city.ToString
.lastVisitTextBox.Text = guestDataRow!["last visit date"].ToString
End With
Thanks