Hi all, I've tried to research this problem online and I know I'm missing something. So hopefully someone can help me.
I am in the business of creating clothing catalogs. These catalogs can be built very differently, with different covers and different inside (body) pieces. I have created a form with the main information about the catalog on top and subforms beneath it (on tabbed pages) to display very specific information about the catalog. On one particular subform (frmForms), I have a datasheet where the user can record the various pieces and assign an Alpha_Code to it (A, B, C, etc.). They also designate in the Form1 field whether it's a Cover or a Body. On a separate subform (datasheet called frmDemo), I want the Cover_Code field to drop down to show the Cover codes and the Body_Code1 field to show the Body codes as listed on the previous subform. This would allow the user to mix and match the covers with the bodies for the various combinations. Hope this all makes sense.
So my problem is that I can't get the codes to update automatically. I've been working on this for a couple of days and trying ideas as listed online, but to no avail. When I close the form and reopen it, it's fine. I've tried using the AfterUpdate in the Alpha_Code field. I have it listed as this:
Private Sub F_AlphaCode_AfterUpdate()
[frmDemo]![Cover_Code].Requery
[frmDemo]![Body_Code1].Requery
[frmDemo]![Body_Code2].Requery
[frmDemo]![Body_Code3].Requery
End Sub
But I'm getting a run-time error '424'. Object required.
Any help you can provide would be very useful! Thanks.