Hi All,
I have some issue when i save list view data in a access table.
In form I have a list box(listtotalcount) and one text box(ID). In form load event I run a query on that list box like: "SELECT count(id) FROM table A" and it gave me the correct result. Now I want to store this data on a different table (table b) and I use this code:
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("table b", dbOpenDynaset)
With rst
.AddNew
!id=txtid
!LineCount = listtotalcount
.Update
End With
But the problem is when I click the save button it store only id not the list box value. Can anyone update me the solution. Thanks in advance..