Formula in a query

DeeLaine

New Member
Joined
Feb 9, 2007
Messages
25
Gosh I wish formula syntax in Access Queries was the same as excel. Life would be so much easier.

I've tried the help to no avail. The expression builder - well - 'nuff said.

This is what my formula would look like in excel:

=IF(MAX(P5:V5)>=30000000,"yes","no")

I would like to write a formula in an access query that does the same thing.

I just can't seem to crack the code. I tried nesting if statements. Didn't work. I tried an IIf, OR combination.....nope - did something wrong there too, but don't know what.

Can anyone help me? Please?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
you need to use an iif & OR combination but you said you tried that already... care to post your non-working expression?

also it seems as if your data is not normalized, this may be the cause of some of your frustration.
 
Upvote 0
Yup - Wouldn't you know it. I kept at the IIF statement and got it to work. Is there an icon for embarrassment?

Anyway - thanks so much for responding - got it to work - no more worries.
 
Upvote 0

Forum statistics

Threads
1,222,031
Messages
6,163,496
Members
451,839
Latest member
HonestZed

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top