Results 1 to 3 of 3
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Invalid bracketing of name

    I am getting this error from this code: =[Forms]![Master Form]![Parents.fullName]

    The problem is that the last parameter has a "." in the name. But this is because the record source is a query with two tables and both tables have a field called "Full Name." So in order to distinguish between the two, I presume Access adds the table name followed by a period as a qualifier to differentiate between the two fields with the same name.

    I suppose getting around this would involve changing Full Name in one table to something different. But suppose I wanted to keep things as is, with a field called Full Name appearing in both tables. If I wanted to do that, is there a way around this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Where is this expression in relation to [Master Form]? Is it on a subform? Why does subform need to reference main form?

    Try:

    =[Forms]![Master Form]![Parents].[fullName]
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265
    [QUOTE=June7;203391]Where is this expression in relation to [Master Form]? Is it on a subform? Why does subform need to reference main form?

    Try:

    =[Forms]![Master Form]![Parents].[fullName][/QUOTE

    The record source was a qry and I had the expression in the criteria row. But when I went to check the record set, instead of one query, all of a sudden there were many queries listed. I don't know why. Probably had something to do with the fact that I would click the builder button (3 dots) when I went into the query to add the criteria.

    I can't seem to reproduce this problem. If it happens again, I will try to keep your suggestion in mind.

    You suggestion makes sense.

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

Similar Threads

  1. Replies: 16
    Last Post: 08-23-2013, 01:11 PM
  2. VBA Error: Invalid Bracketing of Name
    By kawi6rr in forum Programming
    Replies: 3
    Last Post: 02-21-2013, 05:26 PM
  3. Replies: 13
    Last Post: 12-12-2012, 08:17 PM
  4. Replies: 7
    Last Post: 08-28-2011, 02:07 PM
  5. Replies: 3
    Last Post: 04-12-2011, 10:22 AM

Tags for this Thread

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