I think I am in deeper water than I should be here and am hoping some smart cookie can help!
Without wanting to confuse anyone, I have tried to create a picture to show what I need to do:
> Open Database (display switchboard)
> Select A. or B.
Both of these selections open the same form - FORM_1
> Select and item from combo box
> Click toggle button to display (if A. selected above) FORM_2 or (if B. selected) FORM_3 (and hide FORM_1)
> Select an item from combo box (similar to FORM_1)
> Display filtered records in FORM_2.1 or FORM_3.1
FORM_2 and FORM_3 could be the same. It is only FORM_2.1 and FORM_3.1 which are differnt
So far, I have created 2 toggle buttons which point to the respective forms. I thought that by creating a variable to decide which form was to be applied, I could then use the same code as it would insert the form name for me. However, when I select either of the toggle buttons, I get an error message "Microsoft Access can't find the form 'FrmName' referred to in a macro expression or Visual Basic Code.
'FrmName' is the name of my variable - so I am really confused now!!
I hope this makes sense to someone and that they can help a damsel in distress!
NKA
The answer's always easy - if you know it! ;-)
Without wanting to confuse anyone, I have tried to create a picture to show what I need to do:
> Open Database (display switchboard)
> Select A. or B.
Both of these selections open the same form - FORM_1
> Select and item from combo box
> Click toggle button to display (if A. selected above) FORM_2 or (if B. selected) FORM_3 (and hide FORM_1)
> Select an item from combo box (similar to FORM_1)
> Display filtered records in FORM_2.1 or FORM_3.1
FORM_2 and FORM_3 could be the same. It is only FORM_2.1 and FORM_3.1 which are differnt
So far, I have created 2 toggle buttons which point to the respective forms. I thought that by creating a variable to decide which form was to be applied, I could then use the same code as it would insert the form name for me. However, when I select either of the toggle buttons, I get an error message "Microsoft Access can't find the form 'FrmName' referred to in a macro expression or Visual Basic Code.
'FrmName' is the name of my variable - so I am really confused now!!
I hope this makes sense to someone and that they can help a damsel in distress!
NKA
The answer's always easy - if you know it! ;-)