L
Lincoln Beachy
I am helping someone to setup an database in access. We have the tables
and forms, reports,queries setup. But on of the query that we are having
problems with. We have an formula inserted to do some calc's in a field
in the query. But it does not allow us to use it. It worked all in MS
works database but it does not do it in access.
Here is the formula:
=IF(AND(UNITS=1,MODEL="Trailer"),5000,IF(AND(UNITS=1.5,MODEL="Trailer"),1
1000,IF(UNITS>3.5,35000,IF(UNITS>3,26000,IF(UNITS>2.5,18000,IF(UNITS>2,11
000,IF(UNITS>1,5000,0)))))))
Here is what we can put in that formula that will work:Coverage Level:
IIf([Units]>3.5,"35000",IIf([Units]>3,"26000",IIf([Units]>2.5,"18000",IIf([Units]>2,"11000",IIf([Units]>1,"5000",0)))))
This database is to keep track of an church auto insurance. We have
trailers in the auto plan and when we put the first formula in it will
pop up an message saying: The exppresion you entered contains invalid
syntax.
You may have entered a comma without preceding value or identifier. I
hit ok button. I could not get around it at all.
What should I do, we want to include the trailers too for the coverage
part for the clients to know what their coverage is for that vehicle or
trailer.
I need help,
In Christ Jesus,
Lincoln Beachy
and forms, reports,queries setup. But on of the query that we are having
problems with. We have an formula inserted to do some calc's in a field
in the query. But it does not allow us to use it. It worked all in MS
works database but it does not do it in access.
Here is the formula:
=IF(AND(UNITS=1,MODEL="Trailer"),5000,IF(AND(UNITS=1.5,MODEL="Trailer"),1
1000,IF(UNITS>3.5,35000,IF(UNITS>3,26000,IF(UNITS>2.5,18000,IF(UNITS>2,11
000,IF(UNITS>1,5000,0)))))))
Here is what we can put in that formula that will work:Coverage Level:
IIf([Units]>3.5,"35000",IIf([Units]>3,"26000",IIf([Units]>2.5,"18000",IIf([Units]>2,"11000",IIf([Units]>1,"5000",0)))))
This database is to keep track of an church auto insurance. We have
trailers in the auto plan and when we put the first formula in it will
pop up an message saying: The exppresion you entered contains invalid
syntax.
You may have entered a comma without preceding value or identifier. I
hit ok button. I could not get around it at all.
What should I do, we want to include the trailers too for the coverage
part for the clients to know what their coverage is for that vehicle or
trailer.
I need help,
In Christ Jesus,
Lincoln Beachy