I have attached a small database. In the "sFrmIncrements " there is a field named "newIncreme nt" I am trying to update the field but is not working. I don't know why.
is the data source for the field.
If I try it in the intermediate window it is working.
?
?
What could I be doing incorrectly?
Thanks
Raghu Prabhu
Code:
IIf(LookUp("incrementOf","tblPFST","tblPFST.serviceOf='" & [serviceType] & "' And tblPFST.rankOf='" & [rank] & "'")>[increment],[increment]+1,"N/A")
If I try it in the intermediate window it is working.
?
IIf(LookUp("inc rementOf","tblP FST","tblPFST.s erviceOf='1' And tblPFST.rankOf= 'CAPT'")>2,3+1, "N/A") is giving 3 ?
IIf(LookUp("inc rementOf","tblP FST","tblPFST.s erviceOf='1' And tblPFST.rankOf= 'CAPT'")>5,5+1, "N/A") is giving "N/A" What could I be doing incorrectly?
Thanks
Raghu Prabhu
Comment