Below SQL query works when the spaces in the role name are replaced by %: 1 row is returned
select * from cmrdata.dbo.tblRoles where rolename like '%Super%Administrator%'
However, when I try to mimic the same in DataView.RowFilter, it does not return any rows.
dv.RowFilter = "RoleName like '[%]" & Replace(roleName, " ", "[%]") & "[%]'"
I also tried without the [] around the %. Please advise.
Thanks for your help in advance.