jlathem
Technical User
- Jul 25, 2010
- 27
I am not sure if I am using the correct syntax for Nz or even if I am using the function in MS Access 2003 properly.
I got the example from
but can’t get it to work form me.
In a subform I am getting a Sum of a Control called Disp_Dollar
=Sum([Disp_Dollar])
If there are no records found in the table I need a value of 0 to be returned.
I tried several deferent versions but no luck.
My last attempt
Private Sub Form_Load()
'chceck to see if the field is NULL, if so give it a value of "0"
If Nz(Me.[Disp_Dollar], "0") = "0" Then
End If
End Sub
I have tried using this script in On Load and On Open (I am not sure what the deference is between the two)
Anyone have any suggestions?
I got the example from
but can’t get it to work form me.
In a subform I am getting a Sum of a Control called Disp_Dollar
=Sum([Disp_Dollar])
If there are no records found in the table I need a value of 0 to be returned.
I tried several deferent versions but no luck.
My last attempt
Private Sub Form_Load()
'chceck to see if the field is NULL, if so give it a value of "0"
If Nz(Me.[Disp_Dollar], "0") = "0" Then
End If
End Sub
I have tried using this script in On Load and On Open (I am not sure what the deference is between the two)
Anyone have any suggestions?