You "next record" code re-assigns and re-loads the reocrdset which means it
going to start at the 1st record every time, and then only move to the next
2nd record after that. So, each time you are re-loading the reocrdset...it
starts at the beginnning..
However, why all such code? Just use a bound form.
I you must assign the sql, then go:
rssql = "select instill_code, organization_name, acct_num, ACCT_NAME,
BUYER_ADDRESS1, BUYER_ADDRESS2, BUYER_CITY, BUYER_STATE,
BUYER_POSTAL_CODE, DPSU_SAP, DPSU_ORG_NAME, UPDATED_BY FROM
TBL_DPSU_TO_MAP WHERE DPSU_SAP = '';"
me.RecordSource = rssql
Then, use the built in navigation buttons, or place the following code
behind a button:
On Error Resume Next
DoCmd.GoToRecord acActiveDataObject, , acNext
In fact, why is this sql/recordset even being created here. Why not use a
bound form? If your form is bound, then we don't need that sql to be
assigned to the forms reocrdset, but just the navigation code as above.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)