Fornatian
Dim Person
- Local time
- Today, 15:57
- Joined
- Sep 1, 2000
- Messages
- 1,396
For simplicity I have five forms named Form1,Form2 etc..each representing data related to a central record
What I have is a toolbar where users can click to open the various forms.
What I want to do is:
When a user opens Form1 close forms 2,3,4 and 5
When a user opens Form2 close forms 1,3,4 and 5
I can do this using form code but it seems a bit inefficient to copy the code making slight variations to which forms to close.
In english what I want is:
Close Form1,Form2,Form3,Form4,Form5 unless they are the active form>
I know I need a function and I know I need to pass in the activeform name for exclusion purposes but can't quite sort the logic.
Over to you..
Ian
What I have is a toolbar where users can click to open the various forms.
What I want to do is:
When a user opens Form1 close forms 2,3,4 and 5
When a user opens Form2 close forms 1,3,4 and 5
I can do this using form code but it seems a bit inefficient to copy the code making slight variations to which forms to close.
In english what I want is:
Close Form1,Form2,Form3,Form4,Form5 unless they are the active form>
I know I need a function and I know I need to pass in the activeform name for exclusion purposes but can't quite sort the logic.
Over to you..
Ian