Jan 29, 2013 #1 Domino2 Technical User Jun 8, 2008 475 GB I and trying to locate a record by its Primary key against a value in a numeric string PK4 strCriteria = "[ID2] =" & PK4 rs2.FindFirst (strCriteria) Can someone correct this, many thanks
I and trying to locate a record by its Primary key against a value in a numeric string PK4 strCriteria = "[ID2] =" & PK4 rs2.FindFirst (strCriteria) Can someone correct this, many thanks
Jan 29, 2013 1 #2 MajP Technical User Aug 27, 2005 9,382 US numeric string PK4 Click to expand... If ID2 is a numeric field and PK4 is a string variable then you need something like strCriteria = "[ID2] =" & Clng(PK4) If ID2 is a string field and PK4 is string or numeric strCriteria = "[ID2] ='" & PK4 & "' Upvote 0 Downvote
numeric string PK4 Click to expand... If ID2 is a numeric field and PK4 is a string variable then you need something like strCriteria = "[ID2] =" & Clng(PK4) If ID2 is a string field and PK4 is string or numeric strCriteria = "[ID2] ='" & PK4 & "'
Jan 29, 2013 Thread starter #3 Domino2 Technical User Jun 8, 2008 475 GB Many thanks MajP, I will pin that up on my wall. Thanks again Upvote 0 Downvote