Results 1 to 3 of 3
  1. #1
    Sephaerius is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Aug 2013
    Posts
    62

    Find Duplicates Wizard giving me an error

    I'm using the Find Duplicates Wizard and it won't allow me to create a table from the results because it says that "The expression you entered is missing a closing parenthesis, bracket, or vertical bar."
    Well, Access is the one who wrote the expression - why did it write a faulty one, and how do I correct it? The data that this query generates appears to be correct, so it's functioning as I intended. Here's the duplicate criteria, if anyone can locate where the missing parenthesis, bracket, or vertical bar is, I would really appreciate it!

    Code:
    IN 
    (
    SELECT[Total Hours Check, Excluding Non-Productive Time/Time Off (calcu]
    FROM[duplicates]AStmp
    GROUPBY[Total Hours Check, Excluding Non-Productive Time/Time Off (calcu],
    [Total Productive Hours Worked per day (manual entry)*],
    [Name],
    [Date],
    [Client],
    [COE]
    HAVINGcount(*)>1
    AND[Total Productive Hours Worked per day (manual entry)*]=[duplicates].[Total Productive Hours Worked per day (manual entry)*]
    AND[Name]=[duplicates].[Name]
    AND[Date]=[duplicates].[Date]
    AND[Client]=[duplicates].[Client]
    AND[COE]=[duplicates].[COE])
    


  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    AStmp is 2 words: AS TMP
    HAVINGcount is 2 words : HAVING COUNT(

    You shouldn't name fields with commas, brackets, slashes, asterisks.

  3. #3
    Sephaerius is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Aug 2013
    Posts
    62
    Quote Originally Posted by ranman256 View Post
    AStmp is 2 words: AS TMP
    HAVINGcount is 2 words : HAVING COUNT(

    You shouldn't name fields with commas, brackets, slashes, asterisks.
    I don't know why the formatting took out the spaces, but yes those appear as two words. As for the field names, I don't control those, but I suppose I could create a temporary tables with corrected field names for this purpose. I'll give that a try and see, thanks!

    EDIT: That did the trick, it seems. So obvious, yet I missed it. Thanks again.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Microsoft access can't find the wizard
    By PENNAIAH in forum Access
    Replies: 1
    Last Post: 11-14-2016, 07:53 AM
  2. Replies: 3
    Last Post: 01-18-2016, 01:55 PM
  3. Question on Find Unmatched Query Wizard
    By vickster3659 in forum Queries
    Replies: 7
    Last Post: 06-17-2015, 09:50 AM
  4. Replies: 6
    Last Post: 12-22-2014, 12:29 PM
  5. Find Query Wizard Missing
    By Edgy in forum Queries
    Replies: 1
    Last Post: 03-26-2011, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums