How To Use an RDO Prepared Statement to Find a Single Record (143263)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q143263 SUMMARY
RDO does not have a FindFirst or a Seek method and in many cases as a
programmer you need to find out if a particular record exists or not. This
sample uses an RDO prepared statement to provide this kind of
functionality. The following code allows the user to type in a field they
would like to search on (for instance, OrderID, PONum, LastName), click on
a command button and then see a message box with the result of the query.
This example will only find the first occurrence of what you are searching
for. You may also want to use a stored procedure once you know that your
query is working the way that you want it to. Keep in mind that RDO is
available in Visual Basic 4.0 32-bit and Visual Basic 5.0 Enterprise
Editions only.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto kbRDO kbRDO KB143263 |
---|
|