0
down vote
favorite
I am trying to re-use the following search macro to also filter by date.
Sub SearchByDSS
dim oFilter as object
dim oFormCtl as object
oFormCtl = ThisComponent.Drawpage.Forms.getByName("Main")
oFilter = oFormCtl.getByName("Control")
if oFilter.CurrentValue <> "" then
oFormCtl.Filter = "table.Field LIKE" + > "'"+oFilter.CurrentValue+"'"
oFormCtl.ApplyFilter = True
else
oFormCtl.ApplyFilter = False
end if
oFormCtl.Reload
End Sub
I changed the code to something like:
oFormCtl.Filter = "table.Field >=" + {D '" & oFilter.Text & "'}"
but still no luck. Any ideas?
Thanks in advance!