Results 1 to 3 of 3
  1. #1
    Bruce is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    72

    Querry IIf Output Format (Access 2003)

    I have a multiple IIf statement in a querry that calculates cost based on "NumberofDaystoBill x 10" (as an example). I need the "Cost" output to be formatted as currency instead of number.

    Part of the IIf statement in the Querry:

    Cost: IIf([BILLING]="EXTENDED",([NUMBER OF DAYS TO BILL])*10,(([NUMBER OF DAYS TO BILL])*5)))



    Thanks!

    I tried to add FORMAT(Cost, "Currency") but it didn't like it.

  2. #2
    PianoMan64 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    29
    Quote Originally Posted by Bruce View Post
    I have a multiple IIf statement in a querry that calculates cost based on "NumberofDaystoBill x 10" (as an example). I need the "Cost" output to be formatted as currency instead of number.

    Part of the IIf statement in the Querry:

    Cost: IIf([BILLING]="EXTENDED",([NUMBER OF DAYS TO BILL])*10,(([NUMBER OF DAYS TO BILL])*5)))

    Thanks!

    I tried to add FORMAT(Cost, "Currency") but it didn't like it.

    Cost: FormatCurrency(IIf([BILLING]="EXTENDED",([NUMBER OF DAYS TO BILL])*10,(([NUMBER OF DAYS TO BILL])*5))))

  3. #3
    Bruce is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    72
    That did it! Thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Newbie has a Query Question
    By Bruce in forum Queries
    Replies: 2
    Last Post: 11-20-2009, 10:38 AM
  2. Replies: 2
    Last Post: 09-29-2009, 10:25 AM
  3. Access VBA - date format conversion
    By benattal in forum Programming
    Replies: 3
    Last Post: 12-22-2008, 10:40 AM
  4. Replies: 1
    Last Post: 09-06-2006, 11:48 AM
  5. Querry formating
    By Zoroxeus in forum Queries
    Replies: 0
    Last Post: 03-07-2006, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums