Hi,
This line work perfectly when I copy into the default value of [para2]
it will increment the value by one
=DCount("[Para2]","OTR Para2","[Para1]=1")+1
Now I want to combine the 3 following one into one.
=DCount("[Para2]","OTR Para2","[Para1]=1")+1
=DCount("[Para2]","OTR Para2","[Para1]=2")+1
=DCount("[Para2]","OTR Para2","[Para1]=3")+1
I have try with the iif statement with no chance
=IIf([Para1]=1,DCount("[Para2]","OTR Para2","[Para1]=1")+1,IIf([Para1]=2,DCount("[Para2]","OTR Para2","[Para1]=2")+1,IIf([Para1]=3,DCount("[para2]","OTR PARA2","[para1]=3”)+1)))
can you help
This line work perfectly when I copy into the default value of [para2]
it will increment the value by one
=DCount("[Para2]","OTR Para2","[Para1]=1")+1
Now I want to combine the 3 following one into one.
=DCount("[Para2]","OTR Para2","[Para1]=1")+1
=DCount("[Para2]","OTR Para2","[Para1]=2")+1
=DCount("[Para2]","OTR Para2","[Para1]=3")+1
I have try with the iif statement with no chance
=IIf([Para1]=1,DCount("[Para2]","OTR Para2","[Para1]=1")+1,IIf([Para1]=2,DCount("[Para2]","OTR Para2","[Para1]=2")+1,IIf([Para1]=3,DCount("[para2]","OTR PARA2","[para1]=3”)+1)))
can you help