Docmd FindNext Method in Microsoft Access
The Access DoCmd FindNext method performs the Find Next action in Visual Basic and is used in
conjunction with the
This method has no arguments and is called simply by
using the command: DoCmd FindNext.
Are you just starting out on your quest for a database? Need some advice or someone to bounce ideas off of? We are here and will be happy to chat with you on the phone and discuss options to your situation. Visit our contact page and give us a call.
Are you looking for an MS Access template database? We have many for sale in our Access Template and Examples Software section.
Some programmers create buttons to mimic Access's built in searching tools. In this case you would
place the DoCmd FindNext in the On Click event of the command button.
To set the search criteria, use the
action. Typically, you enter a FindRecord action in a visual basic or in a macro
and then use the FindNext action to find recurring records that meet your
criteria. To search for records only when a certain condition is met, you can
enter a conditional expression in the Condition option of the command for the
FindNext action. The conditional expression could be an if then expression
Note that if you use the Find Record method in from a button on your form the
search will start at the 1st record and when activated again will find the same
record because when you click on a command button the form looses the focus of
the current records and therefore there is no current record from which to start
Additional information on DoCmd.Findnext VBA code:
The Access DoCmd.FindRecord method performs
the Find Record action in Visual Basic.This command is often used in
conjunction with the Docmd.FindNext. ...