Read through and found an answer I needed. I was doing something similar in my form. I did get one oddity. My form loads and queries a table to populate comboTermFinalCheck.
When a checkbox is clicked, the combobox (which is nested in a tab control) should display the the option that relates to this employee record (the query that the form is based on).
What I found is that the combo box would display the next option. When [UserCodeL_12] = 3 (Hand Delivered), it would display 4 (Other). I don't know why that is, and subracting 1 fixed it.
Using the above code, has caused a different problem in my report for this form. Using:
Shows 3 instead of Hand Delivered, even though the combobox is bound to column 1 (the descriptions). I could use some help on this.
-Chris
Starlight B. M.
Code:
SELECT tblPAY_EMPLOYEES_Extension_UserCode12.ID, tblPAY_EMPLOYEES_Extension_UserCode12.Description FROM tblPAY_EMPLOYEES_Extension_UserCode12;
*Column Width = 0";1", Bound Column = 1
Code:
Private Sub chkTerm_Click()
'Set Viewable Tab
TabActions.Pages(0).Visible = False
TabActions.Pages(1).Visible = False
TabActions.Pages(2).Visible = False
TabActions.Pages(3).Visible = False
TabActions.Pages(4).Visible = False
TabActions.Pages(5).Visible = True
TabActions.Pages(6).Visible = False
'reset click values
chkHire.Value = 0
chkRehire.Value = 0
chkWage.Value = 0
chkTransfer.Value = 0
chkLOA.Value = 0
'chkTerm.Value = -1
chkOther.Value = 0
'set Page values
txtTermDate.Value = Date
txtTermLastDay.Value = [UserCodeT_11]
chkEligibleRehire.Value = [EligibleForRehire]
Me.comboTermFinalCheck = Me!comboTermFinalCheck.ItemData([UserCodeL_12] - 1)
End Sub
Using the above code, has caused a different problem in my report for this form. Using:
Code:
=[Forms]![frmByChris_PersonnelActionNotice]![comboTermFinalCheck]
-Chris
Starlight B. M.