I have a form whose control source is a query which pulls records from a table based on certain parameters. For some reason, the records do not show up. I checked the query and it does show all the relevant records from the table.
the controls are properly bound to the query fields.
setting the dataentry to no is showing me the first record, but the next button on the form does not show me the next record. here is the code that i am using to move to next record. (i need to create my own next button for some reasons)
If Me.Recordset.RecordCount = Me.CurrentRecord Then
GoTo Err_cmdNext_Click
Else
DoCmd.GoToRecord , , acNext
End If
cycle property is set to all records. the default record move button does show me all the records. but i want to see all of them with my own move to next record button which is not working.
actually, i found the mistake. it ad something to do with the code i had written before moving to next record. but i think that setting data entry to no was very crucial.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.