G
Guest
I have an If And statement that works in Excel, but I can't get it to work in Access. Can someone tell me how I would write the following Excel statement in Access? =If (And(C2+D2=B2, I2>=A2), "Yes", " ")
in Access. Can someone tell me how I would write the following ExcelColeen Eastham said:I have an If And statement that works in Excel, but I can't get it to work
form. In the field's properties, I'm typing the formula in the ControlColeen Eastham said:I have tried your formula, and it doesn't seem to work. I'm using it in a
= [Forms]![FormName]![Hrs]), "Yes",""))
= [Hrs]), "Yes",""))
"Yes","")Here is what my Access formula looks like:
iif(([One] + [Two] = [Tri Day Hrs Req'd]) and ([Total] >= [Hrs]),
The formula ( =If (And (C2 + D2 = B2, I2 >= A2), "Yes", " ") that I had previously given is the Excel formula. The field names are not C2, D2, B2, etc. They have descriptive field names. I've tried your formula below, but it still is just giving me a shaded box instead of a check box. Here is what my Access formula looks like:
iif(([One] + [Two] = [Tri Day Hrs Req'd]) and ([Total] >= [Hrs]), "Yes","")
Thank You! It works perfectly. You have made my life so much better today.
Thank you - Thank you - Thank you!