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
Using Modern Mobile Technologies on Oldish Access 2000 Database
SBS2008 - DCOM was unable to communicate with the computer <computer name> using any of the configured protocols.
5.7.1 Recipient address rejected Access denied, after user name change due to marriage
How to retrieve results from a stored procedure?
Reset Autonumbers when moving to production
How to reference the "checked" value of a checkbox in a GridView template field
I am having problems with this select string?? ms/sqlserver select
IQueryable on datatable
" List does not exist" when start Sharepoint portal server page. Please kindly help me!
convert serial number to date from MYSQL