Results 1 to 3 of 3
  1. #1
    whisp0214 is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    May 2017
    Posts
    30

    Calculated Field with Multiple Conditions

    I want to create a calculated field based on two other fields. The calculated field will be the payment due date. Companies pay either Monthly, Quarterly, Bi-Annually or Annually. How they pay is stored in one field(Payment_Frequency), and the shipment date(Ship_Date) is stored in another. The calculated value will use the ship date to create the payment due date, but it needs to check the Payment_Frequency to see how to calculate it. In essence it is an If/Then/Else statement, but I can't figure out how to do that in a query. Any suggestions?

    Thanks in advance!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use IIf() or Switch() or Choose() functions in query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    whisp0214 is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    May 2017
    Posts
    30
    The switch function works nicely, so thanks June7.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-26-2017, 07:51 AM
  2. Use a calculated field to update multiple fields
    By AnneForumer in forum Queries
    Replies: 1
    Last Post: 10-27-2016, 07:05 AM
  3. Replies: 3
    Last Post: 08-01-2012, 10:56 AM
  4. Calculated field, data from multiple tables
    By Suzie2012 in forum Programming
    Replies: 7
    Last Post: 06-12-2012, 01:15 PM
  5. Using iif for Multiple Conditions
    By kwilbur in forum Access
    Replies: 5
    Last Post: 12-30-2011, 01:52 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