I have a form Ineed to open with a filter.
I can get it to work as long as the filter value is not null.
When the filter val is null i get all the records. I should only get the records where the status is null.
I know I am doing somethingn dumb here.
here is my code on opening the form
thanks for the help.
I can get it to work as long as the filter value is not null.
When the filter val is null i get all the records. I should only get the records where the status is null.
I know I am doing somethingn dumb here.
here is my code on opening the form
Code:
Case cfreshloans
Let strfrmname = "frm_review1"
Let strfilter = "review_status = is null"
Call DoCmd.OpenForm(strfrmname, acNormal, strfilter)
Case ccomploans
Let strfilter = "review_status='Completed'"
Let strfrmname = "frm_review1"
Call DoCmd.OpenForm(strfrmname, acNormal, , strfilter)
Case cpending
Let strfilter = "review_status='Pending'"
Let strfrmname = "frm_review1"
Call DoCmd.OpenForm(strfrmname, acNormal, , strfilter)