• Passing OpenArgs as Criteria not working for me! (A2k (9.0.4402) SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Passing OpenArgs as Criteria not working for me! (A2k (9.0.4402) SR-1)

    Author
    Topic
    #365506

    Passing OpenArgs as Criteria not working for me!

    A2k (9.0.4402) SR-1

    I have two forms, Form A and Form B with a button on each that opens Form C. (trying to reuse objects)

    With open arguments in each Form A and B, I

    Viewing 1 reply thread
    Author
    Replies
    • #564299

      It’s possible that things aren’t executing when you think they are, but before we jump to that conclusion, if you’re trying to populate a listbox based on the value you stuffed into Application (not the best name for a field or control, by the way) you probably need to requery the listbox after you set the value of Application.

      • #564418

        Thanks Charlotte

        Private Sub Form_Load()
        Me!Application = Me.OpenArgs
        Print_Report.Requery
        End Sub

        John

    • #564334

      As Charlotte says, you need to requery. I just completed a project using Openargs to almost all forms without a problem.

      Elizabeth groovin

    Viewing 1 reply thread
    Reply To: Passing OpenArgs as Criteria not working for me! (A2k (9.0.4402) SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: