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
Cannot connect to Sharepoint Central Configuration page due to IIS error.
Getting oledb JET 4.0 to work on a 64 bit OS
How can I change the value of a combo box based on value of an unbound text box?
Visual Studio 2005, Crystal Report Viewer 10, displaying dynamic image
VB.Net move Items from ListBox to Textboxes
What sort of utility will provide autocomplete suggestions while I am typing text within applications such as Microsoft Word, Internet Explorer, notepad, etc.?
Event ID: 2019 "The server was unable to allocate from the system paged pool . . . "
ListView Column Sort By Click Natural Sorting
How do I convert a null value to a blank space?
Visual Studio 2008, Listbox location on picturebox insdie a form