Results 1 to 6 of 6
  1. #1
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134

    vba search in subform working fine but.. TmprryQryFrLnkFldsCrtn0123456789

    Hi guys,

    I could ignore this, I guess, but now and then I get this empty weird query... "TmprryQryFrLnkFldsCrtn0123456789".

    I have this search form which filters data from a subform. I have been writing on the internet and nobody really knows why or how is this query created.

    If I delete the query, only a record is shown in the subform and all search functionality is gone.

    If I leave it there, nothing happens and I can keep working as if it were not there.


    I even change my sql statement to Select Distinct *... from Select *... but it did not helped.

    Funny thing though, when I rewrite the code again, after deleting this weird query, the search form shows all records.. but then at some point the weird query appears... I don't get it.

    Should I just leave it? or



    Should I take care of it? But, how?


    Regards and nice Sunday!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Post a copy of your database with enough records to show the problem.
    Tell us how to get to the problem situation clearly.

  3. #3
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Hi Orange, thanks for your fast reply. Unfortunately I wont be able to do that. It is a pity.
    Thanks anyway.

    But, is this query so bad?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    ??? You can make a copy; then get rid of all your real data; add a few records for Porky Pig, Daffy Duck etc.
    Make sure the error is still there, then post the dummy database. need to see the situation to offer more focused advice.

    I have no idea what "TmprryQryFrLnkFldsCrtn0123456789" is nor whether it is important to your database/application.

  5. #5
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Ok, I will do!

  6. #6
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Orange, I found the problem...

    the main form was not unbound but was referring to a table...

    "The key point is that you want the main form UNBOUND and you want the controls where you put in criteria to trigger the filtering of the subform."

    Thank you all!

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

Similar Threads

  1. Replies: 10
    Last Post: 10-11-2016, 02:39 AM
  2. Replies: 2
    Last Post: 03-13-2014, 09:52 AM
  3. Replies: 5
    Last Post: 01-13-2014, 11:35 AM
  4. Replies: 1
    Last Post: 05-25-2013, 11:19 AM
  5. Replies: 1
    Last Post: 08-17-2010, 11:24 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