shevada123
New member
- Local time
- Today, 08:30
- Joined
- Apr 24, 2007
- Messages
- 9
I have a database where I list prices for products. The prices are based on the type of customer.
I have a table that lists
Customer
Customer Type (can be DD or SH)
My other table with is the tire table has the following:
TireID
ITem Number
Description
Tire Price
Sh Price
List PRice
If the customer type is a DD - I need to use the List Price
If the customer type is SH - I need to use the SH Price
Here is the statements I've tried, but none of them are working..
Tire Price: IIf([customer type]=[dd],[SH Price],IIf([customer type]=[sh],[List Price]))
Tire Price: iif ([customer type]=”dd”, [SH Price], iif([customer type]=’’sh”,[List Price]))
Tire Price: IIf([Customer Type]=[DD],"[SH Price]")
I was using this IIF statment in my query but it is giving me a parmeter box with dd and then pulls up another box with sh before running the query. The query is not working.
I'd appreciate if someone can help me fix this issue.
Thanks
I have a table that lists
Customer
Customer Type (can be DD or SH)
My other table with is the tire table has the following:
TireID
ITem Number
Description
Tire Price
Sh Price
List PRice
If the customer type is a DD - I need to use the List Price
If the customer type is SH - I need to use the SH Price
Here is the statements I've tried, but none of them are working..
Tire Price: IIf([customer type]=[dd],[SH Price],IIf([customer type]=[sh],[List Price]))
Tire Price: iif ([customer type]=”dd”, [SH Price], iif([customer type]=’’sh”,[List Price]))
Tire Price: IIf([Customer Type]=[DD],"[SH Price]")
I was using this IIF statment in my query but it is giving me a parmeter box with dd and then pulls up another box with sh before running the query. The query is not working.
I'd appreciate if someone can help me fix this issue.
Thanks