Results 1 to 4 of 4
  1. #1
    jlgray0127 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    185

    Opening Form based on criteria not working unless selecting toggle filter button after form opens

    Has anyone ever had this issue?



    I have one form where you double click on field and opens another form based on the form I just clicked on.
    I have used this process for years and have not come across this before.

    When the second form opens, it is blank. If I hit the toggle filter button and clear the filter, then click the toggle filter button again, it displays the records I would expect to see when the form opened.

    Thoughts?

    Private Sub PRODUCT_DESCRIPTION_DblClick(Cancel As Integer)
    DoCmd.OpenForm "Gray_PS_Kitting_SubAs", , , "[JN_Txt] = '" & Me.JN_Txt & "' And [BN_Txt] = '" & Me.BN_Txt & "'"


    End Sub

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Could provide your db for analysis.
    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
    jlgray0127 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    185
    I can add a copy of the front end.
    There are 3 different backend databases and it is also connected to Oracle, so I'm not sure if how helpful it would be, beyond the code I posted below. I am happy to oblige if the front end copy would help! Just wanted to share the setup before possibly taking time from you if it will not work.

  4. #4
    jlgray0127 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    185
    I ended up creating two new forms and it is now working correctly.
    There was something weird going on with the formatting on these two forms, too. After I created the new forms, it's working pefectly! Thank you June!

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

Similar Threads

  1. Replies: 4
    Last Post: 08-14-2021, 03:36 AM
  2. Replies: 7
    Last Post: 06-24-2019, 07:51 AM
  3. Opening a form based on criteria
    By Jen0dorf in forum Access
    Replies: 3
    Last Post: 08-27-2016, 09:15 AM
  4. Replies: 9
    Last Post: 06-12-2012, 10:22 PM
  5. Link Criteria no working when opening new form
    By ETCallHome in forum Forms
    Replies: 1
    Last Post: 06-17-2011, 05:26 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