I am using a DAO data control linking to an Access 2003 database. I have been extracting information already within the database using the following method:
txtName.Text = datMembersDetails.Recordset("MembersForename")
And this works fine. However it doesn't work the other way round:
datMembersDetails.Recordset("MembersForename") = txtName.Text
I am wanting to add data that the user has inputted into the text box into the table.
I am using the add new command before this command e.g:
datMembersDetails.Recordset.AddNew
datMembersDetails.Recordset("MembersForename") = txtName.Text
datMembersDetails.Recordset("MembersSurname") = txtName2.Text
However this doesn't work. What am I doing wrong?
Cheers
Ryan


Reply With Quote


Bookmarks