G
Guest
I have three text boxes with OTltc;PTltc; and STltc with identical code
Small sample of code: Same for PT and ST text boxes
Private Sub Otltc_Exit(Cancel As Integer)
If ([Unit] = "fr1e") And ([Otltc] > "0") Then [Ottherapist].Value = "KS"
If ([Unit] = "fr1w") And ([Otltc] > "0") Then [Ottherapist].Value = "LH"
If ([Unit] = "fr2e") And ([Otltc] > "0") Then [Ottherapist].Value = "MW"
The {ltc} text boxes are numeric. Therapist text boxes are initials!!!
I do have a table (UnitAssignment) listing Unit, OT, PT and ST.
The above code works, but, if I change initials in UnitAssignment table I
need to go in form and change over 50 initials.
There's got to be a better way to do this and I'm just not sure how.
Small sample of code: Same for PT and ST text boxes
Private Sub Otltc_Exit(Cancel As Integer)
If ([Unit] = "fr1e") And ([Otltc] > "0") Then [Ottherapist].Value = "KS"
If ([Unit] = "fr1w") And ([Otltc] > "0") Then [Ottherapist].Value = "LH"
If ([Unit] = "fr2e") And ([Otltc] > "0") Then [Ottherapist].Value = "MW"
The {ltc} text boxes are numeric. Therapist text boxes are initials!!!
I do have a table (UnitAssignment) listing Unit, OT, PT and ST.
The above code works, but, if I change initials in UnitAssignment table I
need to go in form and change over 50 initials.
There's got to be a better way to do this and I'm just not sure how.