Results 1 to 2 of 2
  1. #1
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164

    Trouble with Query

    I have created the following query shown below which runs fine:
    However, If try and modify the query to add a field or take a field out I get the message "Invalid Bracketing of name SELECT EmployeeTbl.[First Name'."



    Can someone tell me why I am getting this message.

    SELECT *
    FROM [SELECT EmployeesTbl.[First Name], EmployeesTbl.[Last Name], AdvancesTble.date, AdvancesTble.Location, AdvancesTble.Advance, Sum(IIf(IsNull([pmt]),"0",[pmt])) AS SumOfPmts, ([AdvancesTble].[Advance]-[SumOfPmts]) AS Balance, AdvancesTble.Notes
    FROM EmployeesTbl INNER JOIN (AdvancesTble LEFT JOIN AppliedPmtsTbl ON AdvancesTble.Transaction_ID = AppliedPmtsTbl.Transaction) ON EmployeesTbl.ID = AdvancesTble.EmployeeLkp
    GROUP BY EmployeesTbl.[First Name], EmployeesTbl.[Last Name], AdvancesTble.date, AdvancesTble.Location, AdvancesTble.Advance, AdvancesTble.Notes;
    ]. AS [PAYMENTS SUMMARY]
    WHERE ((([PAYMENTS SUMMARY].Balance)<>0));

  2. #2
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    Let me know if I am not providing enough information. I can tell you that any minor change I make to the query will give me the same message. I just can not change anything about the query and get it to run.

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

Similar Threads

  1. Trouble linking a table to a query
    By wtubell in forum Queries
    Replies: 1
    Last Post: 03-26-2009, 06:34 PM
  2. VB code in Access '07 trouble
    By Pauldk in forum Reports
    Replies: 2
    Last Post: 02-18-2009, 03:59 PM
  3. Code Trouble?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 10-08-2008, 04:47 PM
  4. Replies: 0
    Last Post: 08-16-2008, 09:10 PM
  5. Hi ! Im having time trouble
    By gayano in forum Access
    Replies: 0
    Last Post: 06-28-2007, 12:10 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