hi
I am using XP operating system and access 2007
Ours is a table which contains a field result with data A, P and F. I want to print report based on it.
I want to print pass instead of P and fail instead of F and so on. I made the report based on it. I know that it can be achieved through VBA .I selected the result field in report design mode on view code I write the code but I am really unable to achieve the target it still print A,P and so on in layout view.
I am very new to this subject kindly help
Thanks in advance
I am using XP operating system and access 2007
Ours is a table which contains a field result with data A, P and F. I want to print report based on it.
I want to print pass instead of P and fail instead of F and so on. I made the report based on it. I know that it can be achieved through VBA .I selected the result field in report design mode on view code I write the code but I am really unable to achieve the target it still print A,P and so on in layout view.
Code:
Private Sub RESULT_BeforeUpdate(Cancel As Integer) If (RESULT.Value = "A") Then RESULT.Value = "ABSENT" RESULT.Text = "ABSENT" End If End Sub
Thanks in advance
Comment