Microsoft
Software
Hardware
Network
Question : recordset - find and criteria
Using linked tables to a SQL database I have a field named "Product". In the SQL database this field is set to varchar (max) and does not allow nulls. On the Access front end I can add a new product and place a string value into the Product field such as "MyProduct" without any problems.
But I do get an error when the code below runs if the Product field does not start with a number?
Is there something about the criteria that requires a number?
Code Snippet:
1:
productRS.Find Criteria:="[Product]=" & iGrid3.CellValue(lRow, 4), Start:=adBookmarkFirst
Open in New Window
Select All
Answer : recordset - find and criteria
Try this ...
productRS.Find Criteria:="[Product]='" & iGrid3.CellValue(lRow, 4) & "'", Start:=adBookmarkFirst
ET
Random Solutions
How can I retrieve a list of printer trays for a specific printer?
Recovery Console - "Copy c:\ d:\" fails!
Slow performance with SSRS ReportViewer control in WinForms application
showing connected users to a file share
Sum several items based on individual criteria for each item
What is Utility.mda?
XL97 HowTo use xlMarkerStylePicture?
How to refresh listview webpart in datasheet view programatically or javascript in wss 3.0?
user level security on access 2003 database
McDonalds WiFi HotSpot - problem connecting