I have a main form with a datasheet subform on it. The datasheet has a total of the amounts column in its footer. Due to the fact that the footer is not visible, I have a textbox on the main form which echoes the total so it can be seen. This works fine except that in order to see the current total on the main form when an entry is made in the amounts column I have to requery the total:
This is in the After Update event of the amount on the datasheet. The problem is after you type in a new amount, the cursor jumps to the first column of the first record on the data sheet. How can I prevent this? I tried
but it didn't work.
Code:
Me.Parent.txtAmounttotal.Requery
Code:
Dim bm As String
bm = Me.Bookmark
Me.Parent.txtContractamount.Requery
Me.Bookmark = bm
but it didn't work.