Hi Guys,
I have a check box named "jobstat" on a form and would like to store a text value in the backend table depending on the value of the "jobstat", so I have this code:
the "txtVal" field on the form has its Visibility set to "No" and it is solely responsibly for collecting and committing the text "complete" or "incomplete " to the table.
Now the problem! the "Incomplete " works fine when "jobstat" is unchecked but when checked, the table field which has a data type of Yes/No which is also the Control Source for "txtVal" does not get the "complete" value, Why? What am I doing wrong or not doing?
I have a check box named "jobstat" on a form and would like to store a text value in the backend table depending on the value of the "jobstat", so I have this code:
Code:
Private Sub jobstat_AfterUpdate()
Select Case Me![jobstat]
Case 1
Me![txtVal] = "Complete"
Case 0
Me![txtVal] = "Incomplete"
End Select
Now the problem! the "Incomplete " works fine when "jobstat" is unchecked but when checked, the table field which has a data type of Yes/No which is also the Control Source for "txtVal" does not get the "complete" value, Why? What am I doing wrong or not doing?
Comment