Hello, I have a form which uses the oncurrent event to set a value.
The code works fine UNLESS there are No records in the recordset.
I want to quit the sub if there are no records so the code does not crash. I was hoping the NZ would work, but sadly not.
Thanks Mark
Code:
If Nz(Me.Receipt_Number) <> "" Then
Me.txt_highlight_record_header = Me.Receipt_Number
End If
The code works fine UNLESS there are No records in the recordset.
I want to quit the sub if there are no records so the code does not crash. I was hoping the NZ would work, but sadly not.
Thanks Mark