एडीओ खोज विधि
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
खोज विधि एक रिकॉर्डसेट में एक रिकॉर्ड की खोज करती है जो एक निर्दिष्ट मानदंड को पूरा करता है। यदि खोज सफल होती है, तो रिकॉर्ड पॉइंटर पहले पाए गए रिकॉर्ड को इंगित करेगा।
नोट: इस विधि को कॉल करने से पहले एक वर्तमान पंक्ति स्थिति (जैसे मूवफर्स्ट) सेट की जानी चाहिए, अन्यथा एक त्रुटि होगी।
वाक्य - विन्यास
objRecordset.Find(criteria,skiprows,direction,start)
Parameter | Description |
---|---|
criteria | Required. The column name, comparison operator, and value to use in the
search.
Examples: "Country='Norway'" Note: This method does not support multi-column searches (AND or OR) |
skiprows | Optional. Specifies how many records beyond the current record to skip before beginning the search. Default is 0 |
direction | Optional. A SearchDirectionEnum value that specifies the search direction |
start | Optional. The starting position for the search |
SearchDirectionEnum Values
Constant | Value | Description |
---|---|---|
adSearchBackward | -1 | Searches backward from the starting position. Stops at the beginning of the Recordset. If no match, the record pointer is placed at the beginning of the Recordset |
adSearchForward | 1 | Searches forward from the starting position. Stops at the end of the Recordset. If no match, the record pointer is placed at the end of the Recordset |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ