Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2013

    Unanswered: IIF Statement pulling value from table

    I am wanting to write an IIF statement that pulls value from another unrelated table.
    Statement is something like this Variance: IIf([ListBalance] Between 1 And -1,"InVariance","OutofVariance")

    I would like to beable to pull the 1 and -1 from a configuration table?
    Any help appreciated.


  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    you cant use the between construct in VBA, you can inside a SQL query
    so try:-
    IIf([ListBalance] >= -1 And [ListBalance] <= 1,"InVariance","OutofVariance")
    I'd rather be riding on the Tiger 800 or the Norton

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts