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
use linq to get an observable collection into an array
join a computer to the domain
Windows 2000 Server - How to repair or replace DNS service
SQL Query dense rank
Insert Range Contents into a UserForm
SSL Medium Strength Cipher Suites Supported
MS access VB string not updating with fields from search form
How to open website (hosted on Win Server 2008, IIS) in Microsoft Frontpage 2000?
How to insert semicolon next to my values in excel column
To covert an access report with pictures to any editable document format retaining all the graphics and other formatting settings