K
Kathy
Hello, I am building a parameter query using query by form. The form has 3
criteria: Physician Name, Start Date, End Date. I have used IS NULL in the OR
criteria for the Physician Name, so if that field is left blank, then all the
physicians will show. So far if I put in the physican name with start and end
dates, I receive back the correct information. However if I leave the
physican field blank and just put in start and end dates, I get all records
back again. Also if I put in the physican name and leave the start and end
dates blank, I also get all the records returned. This is my problem as I
would like to be able to leave the physican name blank, so I will see all
physicians, but filtered for start and end date. Or if I just put in the
physican name and blank dates, I will see all the dates for that physician. I
have tried moving the criteria to different rows of the OR criteria, but
still did not fix the entire problem. Any help is greatly appreciated.
criteria: Physician Name, Start Date, End Date. I have used IS NULL in the OR
criteria for the Physician Name, so if that field is left blank, then all the
physicians will show. So far if I put in the physican name with start and end
dates, I receive back the correct information. However if I leave the
physican field blank and just put in start and end dates, I get all records
back again. Also if I put in the physican name and leave the start and end
dates blank, I also get all the records returned. This is my problem as I
would like to be able to leave the physican name blank, so I will see all
physicians, but filtered for start and end date. Or if I just put in the
physican name and blank dates, I will see all the dates for that physician. I
have tried moving the criteria to different rows of the OR criteria, but
still did not fix the entire problem. Any help is greatly appreciated.