Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2025
    Location
    Near Indinanapolis IN
    Posts
    11

    The specified field <field> could refer... error


    Hi,

    I have a huge query with numerous expressions. I get that message but can't find the culpret. Is there any way to search for the field, either in the SQL or the query grid? The specified field <field> could refer to more than one table listed in the FROM clause of your SQL statement. (Error 3079)


  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Sure. You have the same field name(s) in more than one table. The error is asking you to specify (in the criteria) which table that field is in.
    Right now you have fieldname
    You need
    tablename.fieldname

  3. #3
    Join Date
    Apr 2025
    Location
    Near Indinanapolis IN
    Posts
    11
    Yes, I understand but I can't find it. I was asking if there is some way to search this page full of sql to locate the offensice field.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yes, in SQLView go to Home tab and click the Find icon (magnifying glass).
    Or copy/paste to a text editor like Notepad and search there.
    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.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    I just use Ctrl+F. Standard Windows find command?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 04-26-2020, 02:47 PM
  2. Replies: 3
    Last Post: 05-25-2017, 07:30 AM
  3. Replies: 1
    Last Post: 08-21-2013, 12:36 PM
  4. Replies: 4
    Last Post: 02-16-2012, 05:23 PM
  5. Replies: 4
    Last Post: 03-12-2010, 05:42 PM

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