Hi all
I have a count text box on one tab in my form. In english I want to check that all records required are entered before moving on to the next tab, by looking up a control total e.g number in batch is 10, user must enter 10 records before moving onto next tab.
In the onenter event of subform in my next tab I have the follwing code but i get the "you have entered an expression that has no value" error if my count text box (txtSubTotal) is empty.
If (Not IsNull(txtsubtotal)) And (Me.txtSubtotal <> Me.NoOfSubmissions) Then
MsgBox "You must enter all Stage 1 before proceeding to Stage 2"
Me.Scoring_Stage1.SetFocus
End If
..... basically if the subtotal is not empty but does not equal the number of submissions you cant move on.
I have tried different variations of code with Not isNull, Len(Nz(txtSubtotal > 0))
What is the correct syntax I should use with reference to empty text box?
any advice greatly appreciated
I have a count text box on one tab in my form. In english I want to check that all records required are entered before moving on to the next tab, by looking up a control total e.g number in batch is 10, user must enter 10 records before moving onto next tab.
In the onenter event of subform in my next tab I have the follwing code but i get the "you have entered an expression that has no value" error if my count text box (txtSubTotal) is empty.
If (Not IsNull(txtsubtotal)) And (Me.txtSubtotal <> Me.NoOfSubmissions) Then
MsgBox "You must enter all Stage 1 before proceeding to Stage 2"
Me.Scoring_Stage1.SetFocus
End If
..... basically if the subtotal is not empty but does not equal the number of submissions you cant move on.
I have tried different variations of code with Not isNull, Len(Nz(txtSubtotal > 0))
What is the correct syntax I should use with reference to empty text box?
any advice greatly appreciated