Hi all,
I have a subform that i am inserting a new record into with code. It inserts the record into the number 2 position on the subform < it's a continuous form > not at the end of the recordset. In the table that it inserts the new record in it is in the last position. I know i have to use a bookmark, attempted it and it still inserts into the number 2 position on the subform. here is the code:
Function AddBalance(rstTemp As DAO.Recordset, Bal As Double, CID As Long)
'Adds a new record to the recordset using the balance for previous balance
With rstTemp
.AddNew
!ClientID = CID
!BeginBalance = Bal
.Update
.Requery
.Bookmark = .LastModified
End With
End function
i have tried .movelast and a few other things it just isnt working. Also, surprisingly, my Que Access reference book doesnt explain bookmarks at all, just defines it. I am not sure where to set, or how to set a bookmark on continuous subform, or datasheet subform. Any help is greatly appreciated!
THanks in advance
Raven
I have a subform that i am inserting a new record into with code. It inserts the record into the number 2 position on the subform < it's a continuous form > not at the end of the recordset. In the table that it inserts the new record in it is in the last position. I know i have to use a bookmark, attempted it and it still inserts into the number 2 position on the subform. here is the code:
Function AddBalance(rstTemp As DAO.Recordset, Bal As Double, CID As Long)
'Adds a new record to the recordset using the balance for previous balance
With rstTemp
.AddNew
!ClientID = CID
!BeginBalance = Bal
.Update
.Requery
.Bookmark = .LastModified
End With
End function
i have tried .movelast and a few other things it just isnt working. Also, surprisingly, my Que Access reference book doesnt explain bookmarks at all, just defines it. I am not sure where to set, or how to set a bookmark on continuous subform, or datasheet subform. Any help is greatly appreciated!
THanks in advance
Raven