lcTyp = alltrim(upper(thisform.grid2.column1.text1.value)) lcMac1 = alltrim(upper(thisform.grid2.column2.text1.value)) select * from temp; where alltrim(upper(temp.typ)) == lcTyp and alltrim(upper(temp.mac1)) == lcMac1; into array laResultsI assumed that the .. and the column1 after the and instead of column2 were typos.