Syntax Error, If Statement

burrina

Registered User.
Local time
Today, 10:30
Joined
May 10, 2014
Messages
972
I can't see the forest again because of the trees!
Error 2447 invalid use of (dot) ! Operator or invalid parenthesis


PHP:
If [frmPayrollEntry].[Form]![txtVacHrTotal] > 364 And [frmPayrollEntry].[Form]![txtVacHrTotal] < 730 Then
       [frmPayrollEntry].[Form]![txtVacHrTotal]![lblVacHr].Caption = "1 Week"
End If
 
try replacing the dot here

[frmPayrollEntry].[

with a bang (!)
 
or should be

forms![frmPayrollEntry]![Form]![txtVacHrTotal]
 

Users who are viewing this thread

Back
Top Bottom