G
Guest
Hi
I have some code for a control 'No of Officers' in my continuous subform
which, depending on the number (from 1 to 8) selected will make visible that
many controls next to it where I enter each officer's ID number. firstly, My
code isn't exactly what I want. All the invisible controls are visible until
I make a selection in 'no of officers' where it then makes the remainder
invisible. I have the code in the after update of the 'no of officers'
control. Where can I put it so that they all remain invisible until the
selection is made.
Then, if i select 2 officers, only 2 controls appear (I want this), but when
I go onto the next record and select 4 officers, then all records allow 4
controls to be visible, same as if i then select 1 officer, then all records
allow only 1 control to be visible. I have checked, it doesnt interfere with
my data, but it doesnt behave how i would like it. How can I make the code
behave independently on each record of the continuous form?
If you need more info, please ask. I am teaching myself to use VBA at the
moment, so am not very good at it.
Kind Regards
Rigby
I have some code for a control 'No of Officers' in my continuous subform
which, depending on the number (from 1 to 8) selected will make visible that
many controls next to it where I enter each officer's ID number. firstly, My
code isn't exactly what I want. All the invisible controls are visible until
I make a selection in 'no of officers' where it then makes the remainder
invisible. I have the code in the after update of the 'no of officers'
control. Where can I put it so that they all remain invisible until the
selection is made.
Then, if i select 2 officers, only 2 controls appear (I want this), but when
I go onto the next record and select 4 officers, then all records allow 4
controls to be visible, same as if i then select 1 officer, then all records
allow only 1 control to be visible. I have checked, it doesnt interfere with
my data, but it doesnt behave how i would like it. How can I make the code
behave independently on each record of the continuous form?
If you need more info, please ask. I am teaching myself to use VBA at the
moment, so am not very good at it.
Kind Regards
Rigby