Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access can't parse expression

Status
Not open for further replies.

dbar10

Programmer
Dec 5, 2008
196
US
I am writing a macro to SetValue in a field on my form. This will activate on the AfterUpdate event from the Verify checkbox. I believe this to be the expression I want but, for the life of me I can't get the syntax right. I've tried so many different combinations. I just keep getting the error: Access can't parse the expression. I think I'm brain dead. Can you help?


IIf([TextOTCalc])+[TextHoursWorked]<=40,0,IIf([TextOTCalc]+[TextHoursWorked]>40,[TextOTCalc]+[TextHoursWorked]-40-[TextNowOT],0))
 
how about...
Code:
IIf([TextOTCalc]+[TextHoursWorked]<=40,0,IIf([TextOTCalc]+[TextHoursWorked]>40,[TextOTCalc]+[TextHoursWorked]-40-[TextNowOT],0))

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top