Hello Dell,
Thanks for your response. I am trying your suggestions and I need a date "range." I am trying the following but think I am not getting the parentheses quite right. Do you think "Includes Upper Bound" is the best function to get a date range? Also, with below code I'm getting a " ) is missing" error but it looks correct to me.
({Command.apptdate} IncludesLowerBound ({?Patients w/Two Encounters-Begin Date}) and IncludesUpperBound ({?Patients w/Two Encounters-End Date})) and
(
IsNull({Command_1.date}) or
({Command_1.date} IncludesLowerBound ({?Patients w/Eye Appt-Begin Date}) and IncludesUpperBound ({?Patients w/Eye Appt-End Date}))
)