Hi,
I have a text box which shows the sum of numbers for today - the text box is located in a form which is based on a query.
I want a pop up message to appear if the sum of records is zero (meaning no entries were added). My code works for a simple (empty) text box, but doesn't work if I use =SUM([Source]) as the control source of the text box:
Here is the code im using:
If IsNull(Me.Text2) Then
MsgBox ("No records have been added today!")
End If
Also, what's the difference between using Me.text2 and Me![Text2]
thanks guys!
I have a text box which shows the sum of numbers for today - the text box is located in a form which is based on a query.
I want a pop up message to appear if the sum of records is zero (meaning no entries were added). My code works for a simple (empty) text box, but doesn't work if I use =SUM([Source]) as the control source of the text box:
Here is the code im using:
If IsNull(Me.Text2) Then
MsgBox ("No records have been added today!")
End If
Also, what's the difference between using Me.text2 and Me![Text2]
thanks guys!