Results 1 to 3 of 3
  1. #1
    The X-Man is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    8

    Why is this formula not working?

    Hi all

    Can anyone tell me why this formula is not working or what I am doing wrong? There are plenty of Nurse Practitioners in my data but it doesn't post the 0.85, it just posts 1.

    Mid-Level: IIf([PerfProvType]="[Nurse Practitioner]" Or [PerfProvType]="[Physician Assistant]" Or [PerfProvType]="[Midwife]",0.85,1)



    Thanks n advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    you are telling the field [PefProvType] to literally = "[Nurse Practitioner]" (with brackets in the name)
    brackets without quotes are a field value
    inside quotes is the literal assignment

    you may want:
    IIf([PerfProvType]="Nurse Practitioner" Or [PerfProvType]="Physician Assistant" Or [PerfProvType]="Midwife",0.85,1)



  3. #3
    The X-Man is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    8
    Thanks Ranman

    That worked perfectly. I thought I had to put brackets around everything that had a space between words.

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

Similar Threads

  1. Built-In Formula in Access Db not working
    By rdyson39 in forum Access
    Replies: 5
    Last Post: 01-23-2019, 02:44 PM
  2. MOD formula not working correctly
    By Tascja in forum Access
    Replies: 2
    Last Post: 10-25-2017, 01:03 PM
  3. Replies: 3
    Last Post: 10-09-2014, 03:31 PM
  4. Auto sum formula not working
    By data808 in forum Access
    Replies: 8
    Last Post: 07-04-2014, 02:17 AM
  5. BMI calculation formula not working...
    By coolpal9 in forum Forms
    Replies: 2
    Last Post: 03-27-2012, 12:06 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