Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Access IIF Statement

Status
Not open for further replies.

ridsey

Technical User
May 28, 2003
7
CA
Im working on an inventory database. I have a column that is used to show whether the products warranty is calculated monthly or yearly. Now im trying to using queries to create some reports of total and what not. I am using this statement in the query to calculate the yearly amount on monthly figures

NewCost: IIf([Y/M]="M",[Cost]=[Cost]*12,[Cost])

but anything with the M gives me a cost of $0.00,

just wondering what im missing in my statement
 
Nevermind, was able to figure it out myself!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top