DataFind Methods

Reset

(Integer)

Resets the recordset for initial use. When using the EnterB input, the control performs a MoveNext on each entry. However, this skips the first record on initial use. The Reset method prevents MoveNext from being executed on the next call that enters the control on the specified channel.

The Reset method will clear any bookmarks used by the control when traversing a database. When using a data control that is shared across all channels, the control uses bookmarks to maintain the position for each channel for the DataFind, DataChange, and DataSwitch controls. The Reset method will clear these bookmarks.

NOTE: This method should not be used if a call is active and the bookmarks are in use. For instance, if a call has passed through the DataFind and is about to enter a DataChange, the bookmarks should not be reset.

When using ODBC data sources, the Reset method will delete the current recordset for that channel. On the next call that enters the control, a new recordset will be created using the current contents of the database.

SetRecSource

(Channel as Integer, RecordSet as Object)

Assigns a recordset to the control when using Jet databases. Each channel generally has its own recordset. This method should only be used in the DataFind Enter event.

TakeCall

This method allows the programmer to override the graphical connections and transfer a call to any other control. See TakeCall.

Read more about DataFind control.