Results 1 to 8 of 8
  1. #1
    dslomer64 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Fairfield, OH, USA
    Posts
    2

    Repeatedly being asked for parameter value for nonexistent query Query2 that I deleted yesterday

    I think my attachment says a lot... ... ...



    I'm not a seasoned Access user, but I've used it for a few projects, including some sort of student discipline database 20-30 years ago. It's coming back.

    But if *I* can't see "query2" using any tool I'm aware of... Where's Access getting it?

    Here’s my SQL
    SELECT Outlets.Room, Outlets.Device, Outlets.WallAlias, Outlets.Circuit, Outlets.DeviceIdentifierIfAny, Outlets.DeviceWatts, Outlets.Note, AtTheBox.Amps, Rooms.Floor, Locations.DirPlusWall
    FROM Rooms INNER JOIN (Locations INNER JOIN (DeviceType INNER JOIN (AtTheBox INNER JOIN Outlets ON AtTheBox.Circuit = Outlets.Circuit) ON DeviceType.Device = Outlets.Device) ON Locations.WallAlias = Outlets.WallAlias) ON Rooms.Room = Outlets.Room;

    Clearly I didn’t write that. Anyway, no mention of “query2”.

    Now at one time I DID have a "query2" but I deleted it with no error messages.

    I have done Compact and Repair Database, got Relationships report (attached) looked for Dependencies (none--attached)

    A couple of times, in Datasheet view, there was ONE record with 4 or 5 fields with "?name" as the field values. Fortunately, that has quit happening. Don't know what caused it, nor why it went away. At the time, closing and re-opening the database produced the same results, but each time all I did was visit Design, change nothing, and then view a correct query. After supplying a value for query2.Circuit.

    I assume that interloping "query2" was responsible somehow.

    But whatever. How do I get rid of the request for parameter value "query2.Circuit" when in fact there's no such table or query with the field name "Circuit" except the query we're looking at and the table that it's based on.
    Attached Thumbnails Attached Thumbnails query2 bug.png  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,853
    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    20,962
    Or at least the SQL of the query. It could be in an expression somewhere.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,853
    SQL provided in OP. Issue doesn't appear to be 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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    20,962
    Clearly I'm blind.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Ajax is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    7,995
    suggest check the filter and sort properties for your query - and if this sql is being used as a source for a form or report - check there as well.

    To see the properties, in design view click on the properties button in the ribbon

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    6,859
    Now at one time I DID have a "query2" but I deleted it with no error messages.
    You probably have "Track Changes" turned on in Options. This sort of thing can happen as a result of that setting when things are renamed or deleted. To test that theory I would have suggested a CR but you've already done that. Suggest that you open a new db and import all of your objects into it and see what happens with the new one. The fact that ghost errors like #Name go away when you continue to play around is not a good thing, really.

    If that fixes it, you might want to turn off Track Changes.

    Forgot -
    the problem you report is a result of opening the query you posted? Or is that just what you think is the root of the problem but it happens when you open a form/report that is based on that? In that case, you have a control that references query2, such as sql for a combo row source, or a calculated control.
    - "doesn't work" doesn't help. Implement changes in copies of your database.
    "Everyone has a photographic memory; some just don't have film." Steven Wright

  8. #8
    roaftech is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Nov 2012
    Location
    Romania
    Posts
    65
    I have experienced a similar effect from time to time and tracked it down to the "sorting and grouping" options, either directly or by inference. Can also be hiding in a conditional formatting formula.

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

Similar Threads

  1. Not sure why I'm being asked for a parameter.
    By lccrews in forum Queries
    Replies: 9
    Last Post: 06-23-2019, 09:53 PM
  2. Parameter Value for Deleted Field?
    By PATRICKPBME in forum Reports
    Replies: 2
    Last Post: 07-21-2017, 10:26 AM
  3. delete query produce #deleted in all deleted values
    By learning_graccess in forum Queries
    Replies: 2
    Last Post: 03-31-2012, 07:20 AM
  4. Replies: 11
    Last Post: 12-02-2011, 01:20 PM
  5. Replies: 3
    Last Post: 02-27-2009, 08:07 PM

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
  •  
Tech Forums: Microsoft Office Forums