I am using the code below to filter my form.
DoCmd.OpenForm "frmBusinessOppurtunity_Main", , , "Capture_Lead = '" & Me!CaptureLead & "' AND Opportunity_Type = '" & Me!Type & "' AND Opportunity_Name = '" & Me!Name & "'"
It works fine but I have to enter all 3 criteria's to make it work.I changed AND to OR. Now it will work if I just enter any one criteria. It should work if I enter just 1, any 2 or all 3 criteria's.
What needs to be done to make this work???
Thanx in advance
Ekta
DoCmd.OpenForm "frmBusinessOppurtunity_Main", , , "Capture_Lead = '" & Me!CaptureLead & "' AND Opportunity_Type = '" & Me!Type & "' AND Opportunity_Name = '" & Me!Name & "'"
It works fine but I have to enter all 3 criteria's to make it work.I changed AND to OR. Now it will work if I just enter any one criteria. It should work if I enter just 1, any 2 or all 3 criteria's.
What needs to be done to make this work???
Thanx in advance
Ekta
Last edited: