poohbear2012
Registered User.
- Local time
- Today, 20:03
- Joined
- Jan 8, 2012
- Messages
- 30
I am encountering Run-time error 2427 "You entered an expression that has no value". The line in bold below is the line causing the issue.
The txtcount field on the form is =Count([tbldetails.CustomerNumber])
there are two identically name fields in two tables, hence why the table name is at the front. Not sure if this where the error lies.
Option Compare Database
Private Sub btnsendemail_Click()
If Me.txtcount = "" Then
MsgBox "There are no actions to be undertaken"
Else
On Error GoTo handdler
Regards
Trisha
The txtcount field on the form is =Count([tbldetails.CustomerNumber])
there are two identically name fields in two tables, hence why the table name is at the front. Not sure if this where the error lies.
Option Compare Database
Private Sub btnsendemail_Click()
If Me.txtcount = "" Then
MsgBox "There are no actions to be undertaken"
Else
On Error GoTo handdler
Regards
Trisha