A text box named statcurx holds the value of the current status of a case.
A text box named NewStatusx holds the value of the new status of a case.
I have the following code at the on close event of the form -
Select Case stacurx
Case 22
If Me![NewStatusx] = 14
'save a date to a field in the underlying table
DoCmd.OpenForm "frmPart2",,, "Key = forms![CaseChange]![Key]"
End If
End Select
The value of the current record's stacurx is 22 and NewStatusx is 14.
When I close the form nothing happens - no error message and the form doesn't open.
Thanks!
PS. I also need some help with the 'save a date... part.
A text box named NewStatusx holds the value of the new status of a case.
I have the following code at the on close event of the form -
Select Case stacurx
Case 22
If Me![NewStatusx] = 14
'save a date to a field in the underlying table
DoCmd.OpenForm "frmPart2",,, "Key = forms![CaseChange]![Key]"
End If
End Select
The value of the current record's stacurx is 22 and NewStatusx is 14.
When I close the form nothing happens - no error message and the form doesn't open.
Thanks!
PS. I also need some help with the 'save a date... part.