lcPhone = alltrim(strtran(thisform.txtPhone.value, "-","")) + '%' select * from myTable where phone like m.lcPhone into cursor curResults nofilter select gridCursor zap insert into gridCursor select * from curResultsAlso check Format in Help. You can set format and inputmask of the textbox to use -, but the value would not have -.