hi all, how are you? this is my first post ^_^
I have a problem with my search form. it was working fine before i connected the access database with the sql server. the code now gets the filtering details and filter the records according to the search criteria only if number and date fields where entered, and it does not work with the test fields!!
i.e. if i entered a text in a text search field, it will return no records!!
i used the same coding as this:
http://allenbrowne.com/ser-62.html
i also tried changing this line:
strWhere = strWhere & "([Region] = """ & Me.txtFilterRegion & """) AND "
to this:
strWhere = strWhere & "([Region] = '" & Me.txtFilterRegion & "') AND "
according to this post:
http://www.access-programmers.co.uk/forums/showpost.php?p=677505&postcount=6
but still not working.. so any help please?!
thanks in advance
I have a problem with my search form. it was working fine before i connected the access database with the sql server. the code now gets the filtering details and filter the records according to the search criteria only if number and date fields where entered, and it does not work with the test fields!!
i.e. if i entered a text in a text search field, it will return no records!!
i used the same coding as this:
http://allenbrowne.com/ser-62.html
i also tried changing this line:
strWhere = strWhere & "([Region] = """ & Me.txtFilterRegion & """) AND "
to this:
strWhere = strWhere & "([Region] = '" & Me.txtFilterRegion & "') AND "
according to this post:
http://www.access-programmers.co.uk/forums/showpost.php?p=677505&postcount=6
but still not working.. so any help please?!
thanks in advance