It brought up a syntax error because there was no space between the strFilter and the & e.g. strFilter = strFilter&.
So when you changed it, obviously brought up the same error.
Thanks for your effort
Michelle
If i chang it back to strFilter is brings up a form with no details in it.
Here's my code:
Private Sub btnSearchForProspect_Click()
Dim strSQL As String
Dim strFilter As String
'Code to automatically open form
If SysCmd(acSysCmdGetObjectState, acForm, "frmEditProspect") <>...
Thanks scottsanpedro for your quick reply!
When I select a criteria and run it, a run time error occurs '2448'. Saying "you can't assign a value to this object".
When I go to debug it highlights the following code:
.Filter = strSQL
Can you suggest any reasons?
Thanks
Hi,
I'm trying to have a form that allows the users to select search criteria from 3 drop down boxes. They can choose to select criteria from 1, 2 or all of the boxes.
However when I choose the criteria it only seems to work for the Division criteria on its own and none of the others!! Please...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.