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 to display mapped network drive information in windows explorer
Year to Year Sales Comparison Report
How to change US dictionary back to UK dictionary permenently ?
Remote Desktop- blank screen
Receive Connector for Exchange 2007 Server to Receive From Barracuda FW 300
MDB, Library MDA, open a 2nd instance of a Form in MDB from MDA.
Draw gradient on panel control
Count records in subform meeting criteria
Unable to join a Win2008 server to a Windows 2008 Domain
Script Error; line 2057; res://ieframe.dll.preview.<wbr />js