Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Expression Builder Help!

Expression Builder Help!

Scheduled Pinned Locked Moved Database
databasehelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Karma31251
    wrote on last edited by
    #1

    IIf(IsEmpty(DLookUp("[Doctor Name (MD)]","tblQueryData","[PKey]='1'")),([tblMasterReferrals].[Doctor Name (MD)]) Like "*",DLookUp("[Doctor Name (MD)]","tblQueryData","[PKey]='1'")) Or Is Not Null I have this strip of code in the Expression Builder for the criteria row of a column in an Access Database Query. My objective for this is to have this code filter the records by an entry in the first row of a table, in a column with a matching name. Also, if there is no entery for that column in the table then show all records, or no filter in that column. I have six six different columns in one query i would like to do this to. I have found that if i have a criteria entry in the the table for the query and i change that column's Expression Builder Code to say Or Is Null it works, it filters the query on that table entry. But if i take that entry out of the table, it will return nothing unless I change the Expression Builder Code to say Or Is Not Null, I want the query to return unfiltered records for that column if there is no entry in the table. Can anyone tell me how i can mess these two to make a fuctional query?? Lost!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups