Hello:
I have a continuous form that displays records. In the AfterUpdate event of one of the fields, Binding_Percent age, I have the following code:
[code=vb]
Private Sub Binding_Percent age_AfterUpdate ()
'Updates the Total calculation in the control "SumGWP" and "SUMNWP"on the quick reference
'table on the Forecast form
With Me![SumGWP] And Me![SumNWP] And Me![Sum50GWP] And Me![Sum50NWP]
DoCmd.Requery
End With
End Sub
[/code]
Basically, in my field Binding_Percent age a user can select various choices from a drop down list I created. Depending on their choice, through the above mentioned code, I am refreshing various unbound fields on summary table that I created on the form. This all works great except that since I am doing a DoCmd.Requery the cursor jumps from the record in which I made the change jumps to the first record on the list.
So let’s say there were 5 rows each row representing a record on my form and I made a change on row 3, after the change the cursor would jump to row 1.
I believe this is happen because at the same time I must be requerying the form thus impacting the record source since it is set to a query I built.
How can I stop that from happen?? Any ideas??
Thanks,
Keith.
I have a continuous form that displays records. In the AfterUpdate event of one of the fields, Binding_Percent age, I have the following code:
[code=vb]
Private Sub Binding_Percent age_AfterUpdate ()
'Updates the Total calculation in the control "SumGWP" and "SUMNWP"on the quick reference
'table on the Forecast form
With Me![SumGWP] And Me![SumNWP] And Me![Sum50GWP] And Me![Sum50NWP]
DoCmd.Requery
End With
End Sub
[/code]
Basically, in my field Binding_Percent age a user can select various choices from a drop down list I created. Depending on their choice, through the above mentioned code, I am refreshing various unbound fields on summary table that I created on the form. This all works great except that since I am doing a DoCmd.Requery the cursor jumps from the record in which I made the change jumps to the first record on the list.
So let’s say there were 5 rows each row representing a record on my form and I made a change on row 3, after the change the cursor would jump to row 1.
I believe this is happen because at the same time I must be requerying the form thus impacting the record source since it is set to a query I built.
How can I stop that from happen?? Any ideas??
Thanks,
Keith.
Comment