• Problem With Synchronized Combo Boxes (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Problem With Synchronized Combo Boxes (Access 2000)

    • This topic has 10 replies, 2 voices, and was last updated 21 years ago.
    Author
    Topic
    #404483

    (Edited by HansV – queries displayed in table form)

    I’m trying to create a couple of synchronized combo boxes, but I keep getting a parameter box coming up when I open my form, and it’s asking for a StudID. Here’s how I have it setup:

    Student List query

    Field: StudID FirstName LastName
    Table: tblStudent tblStudent tblStudent
    Sort:
    Viewing 1 reply thread
    Author
    Replies
    • #823167

      Does it help if you change the second query to the following?

      Field: InvID SchoolYear [forms]![frmRefund]![Combo9]
      Table: tblInvoices tblSchoolYear
      • #823201

        Nope, it doesn’t make any difference. hairout

        • #823228

          Try this then:
          – Open the form in design view.
          – Clear the Row Source of Combo15.
          – Change the After Update event procedure for Combo9, substituting the correct name

          Private Sub Combo9.AfterUpdate()
          Me!Combo15.RowSource = “Exact name of invoice list query”
          Me!Combo15.Requery
          Me!Combo15.SetFocus
          End Sub

          Tip for future development: I recommend giving controls meaningful names. If you have to perform maintenance on the database after months of not working with it, a name such as cboStudentList or cboInvoiceList is much easier than Combo9 or Combo15. smile

          • #823267

            Well, it’s finally working. I finally figured out what my problem was. I still had remnants of a subform still on my form. That’s why it was wanting that parameter. doh

            I also took your advice on naming controls. I guess I was just concered with trying to get it to work, than with the names. Thanks.

            • #823273

              Glad you found it! This kind of thing can be hard to trace. bravo

            • #823274

              Glad you found it! This kind of thing can be hard to trace. bravo

          • #823268

            Well, it’s finally working. I finally figured out what my problem was. I still had remnants of a subform still on my form. That’s why it was wanting that parameter. doh

            I also took your advice on naming controls. I guess I was just concered with trying to get it to work, than with the names. Thanks.

        • #823229

          Try this then:
          – Open the form in design view.
          – Clear the Row Source of Combo15.
          – Change the After Update event procedure for Combo9, substituting the correct name

          Private Sub Combo9.AfterUpdate()
          Me!Combo15.RowSource = “Exact name of invoice list query”
          Me!Combo15.Requery
          Me!Combo15.SetFocus
          End Sub

          Tip for future development: I recommend giving controls meaningful names. If you have to perform maintenance on the database after months of not working with it, a name such as cboStudentList or cboInvoiceList is much easier than Combo9 or Combo15. smile

      • #823202

        Nope, it doesn’t make any difference. hairout

    • #823168

      Does it help if you change the second query to the following?

      Field: InvID SchoolYear [forms]![frmRefund]![Combo9]
      Table: tblInvoices tblSchoolYear
    Viewing 1 reply thread
    Reply To: Reply #823168 in Problem With Synchronized Combo Boxes (Access 2000)

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

    Your information:




    Cancel