Hello,
I have a value in a table called WeekendAdmit. It is a Yes/No datatype. If the user selects from the combo box any UnavailableReason I want the Weekend Admit field to be updated to Yes.
Originally this was done in a macro, but I wanted to learn how to do it in VB. I get an error called Object Required. I tried putting Set in front of the Me.WeekendAdmit = 1 and that doesn't work either.
Any ideas?
Here is my code:
If Me.UnavailableReason Is Not Null Then
Me.WeekendAdmit = 1
End If
If Me.UnavailableReason Is Null Then
Me.WeekendAdmit = 0
End If
I have a value in a table called WeekendAdmit. It is a Yes/No datatype. If the user selects from the combo box any UnavailableReason I want the Weekend Admit field to be updated to Yes.
Originally this was done in a macro, but I wanted to learn how to do it in VB. I get an error called Object Required. I tried putting Set in front of the Me.WeekendAdmit = 1 and that doesn't work either.
Any ideas?
Here is my code:
If Me.UnavailableReason Is Not Null Then
Me.WeekendAdmit = 1
End If
If Me.UnavailableReason Is Null Then
Me.WeekendAdmit = 0
End If