R
Richard B. Lewis
Hi,
We have a form with the following construct:
------------------------------------------------
tmpRec = me.CurrentRecord
.... we do calculations here and update the underlying datasource (SQL)
.... when we come back to the form, we want to sit on the same record we left
Me.Refresh
DoCmd.GoToRecord,,acGoTo, tmpRec
-------------------------------------------------
The problem is that on large datasets, the Refresh isn't finishing before
the DoCmd.GoToRecord statement is executed and we get the message that we
can't go to the specified record.
Is there a way to ensure that Access finishes the Refresh before continuing?
Thanks in advance.
(e-mail address removed)
We have a form with the following construct:
------------------------------------------------
tmpRec = me.CurrentRecord
.... we do calculations here and update the underlying datasource (SQL)
.... when we come back to the form, we want to sit on the same record we left
Me.Refresh
DoCmd.GoToRecord,,acGoTo, tmpRec
-------------------------------------------------
The problem is that on large datasets, the Refresh isn't finishing before
the DoCmd.GoToRecord statement is executed and we get the message that we
can't go to the specified record.
Is there a way to ensure that Access finishes the Refresh before continuing?
Thanks in advance.
(e-mail address removed)