harlequeen
New member
- Joined
- Apr 16, 2005
- Messages
- 2
- Programming Experience
- Beginner
I am trying to teach myself VB.net and am trying to replicate a small program a friend showed me.
I have a picture of our town and I want to be able to add information to a database about the area.
I have a database and am able to get the number of records in returned in a message box. I have a second form which fires up if I make a new label on the 1st form and the labels co-ordinates are passed from the first form to the 2nd in the shape of a couple of textboxes.
I also have other text boxes on form2 that I want to be able to inut info into and save to my db. Data such as Name, Address1, Address2, Address3, Phone.
I simply can't work out how to do it.
I have tried to use the following code but keep getting an error,
but get the following error:
Property access must assign to the property or use its value.
I don't know how to connect the textboxes to the fields in the database, I don't think..I've looking at this stuff for hours and its beginning to swim now, I don't know anymore what I do know...
I have a picture of our town and I want to be able to add information to a database about the area.
I have a database and am able to get the number of records in returned in a message box. I have a second form which fires up if I make a new label on the 1st form and the labels co-ordinates are passed from the first form to the 2nd in the shape of a couple of textboxes.
I also have other text boxes on form2 that I want to be able to inut info into and save to my db. Data such as Name, Address1, Address2, Address3, Phone.
I simply can't work out how to do it.
I have tried to use the following code but keep getting an error,
VB.NET:
pbman.Position = pbman.Count - 1
pbman.EndCurrentEdit()
OleDbDataAdapter1.UpdateCommand(DataSet11)
but get the following error:
Property access must assign to the property or use its value.
I don't know how to connect the textboxes to the fields in the database, I don't think..I've looking at this stuff for hours and its beginning to swim now, I don't know anymore what I do know...
Last edited: