S
serviceman via AccessMonster.com
Hi gang,
Banging my head on the wall with this one:
I have a main form 'formadmintestmain' which has a continuous subform
'formadmintestpage1' on it. On this subform is a combobox (Combo55) that
saves its' data in field 'RQSTED_RANK'. Everything works as it should. What I
am TRYING to do is get this combo box to have a default value when
RQSTED_RANK is NULL:
If IsNull(Me.RQSTED_RANK) Then Me.Combo55 = DLookup("BELT_RANK", "STUDENTS",
"STUDENT_ID=" & Me.STUDENT_ID) + 1
This code works fine in a different form that have that does one student_id
record at a time, but I cannot get this to work for my continuous form. I'm
not exactly sure which event would be the best place to put this, either;
should it go in the On Current of the subform, the after update of the combo
box I use to select the main record from, or what? Any help will be greatly
appreciated!
Andy
Banging my head on the wall with this one:
I have a main form 'formadmintestmain' which has a continuous subform
'formadmintestpage1' on it. On this subform is a combobox (Combo55) that
saves its' data in field 'RQSTED_RANK'. Everything works as it should. What I
am TRYING to do is get this combo box to have a default value when
RQSTED_RANK is NULL:
If IsNull(Me.RQSTED_RANK) Then Me.Combo55 = DLookup("BELT_RANK", "STUDENTS",
"STUDENT_ID=" & Me.STUDENT_ID) + 1
This code works fine in a different form that have that does one student_id
record at a time, but I cannot get this to work for my continuous form. I'm
not exactly sure which event would be the best place to put this, either;
should it go in the On Current of the subform, the after update of the combo
box I use to select the main record from, or what? Any help will be greatly
appreciated!
Andy