G
Guest
Good afternoon
I'm working on a small budget tracking application for my department. I have a switchboard form that, based on inputs in listboxes, is to open the 'inner' forms.
For example, the first lb contains "New", "Modify", "View" and the second contains "Vendor Company", "Vendor Contact", "Project", "Purchase Order", "Line Item", "Invoice", and "Payment". The OnClick for the GO! button is to open a form called F_XY where X is the dlookup for the first lb and Y is the value of the dlookup for the second lb
Example: If the NEW and PROJECT are both highlighted, the GO button should open a form called "F_13" (you get the idea)
Well, my OnClick is thus
Option Compare Databas
Private Sub Go_Click(
DoCmd.OpenForm ("F_" & DLookup([ActionID], "T_Action", "T_Action.Action = Forms!F_Switchboard.LB_Action") & DLookup([CategoryID], "T_Category", "T_Category.Category = Forms!F_Switchboard.LB_Category")
End Su
My F_Switchboard is unbound so there's no updating that needs to be done before the OnClick procedure runs
If someone can help me out - and I don't think I left out any information - I'd really appreciate it. I'm stumped
Thank you
Derek
I'm working on a small budget tracking application for my department. I have a switchboard form that, based on inputs in listboxes, is to open the 'inner' forms.
For example, the first lb contains "New", "Modify", "View" and the second contains "Vendor Company", "Vendor Contact", "Project", "Purchase Order", "Line Item", "Invoice", and "Payment". The OnClick for the GO! button is to open a form called F_XY where X is the dlookup for the first lb and Y is the value of the dlookup for the second lb
Example: If the NEW and PROJECT are both highlighted, the GO button should open a form called "F_13" (you get the idea)
Well, my OnClick is thus
Option Compare Databas
Private Sub Go_Click(
DoCmd.OpenForm ("F_" & DLookup([ActionID], "T_Action", "T_Action.Action = Forms!F_Switchboard.LB_Action") & DLookup([CategoryID], "T_Category", "T_Category.Category = Forms!F_Switchboard.LB_Category")
End Su
My F_Switchboard is unbound so there's no updating that needs to be done before the OnClick procedure runs
If someone can help me out - and I don't think I left out any information - I'd really appreciate it. I'm stumped
Thank you
Derek