View Single Post
  #6  
Old May 14th, 2010, 04:52 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default how can I replace SQL query with VBA logic

On Fri, 14 May 2010 15:05:37 GMT, "mls via AccessMonster.com" u55943@uwe
wrote:

Tom, I fixed the syntax error.
If the sample appears twice in the list then only I have to execute my code
and change the TestNo. In order to capture the duplicate sampleid I am using
dcount function to count. I can't use the WHERE clause as my samples change
each and every time and I don't know what they will be.


You certainly do NOT need to know the sample number to find duplicates. Could
you explain the logic which identifies which records need to be updated? A
Query referencing the table should certainly be able to do this.
--

John W. Vinson [MVP]