I have table(table1) RxNum that is set as a number and each entry has 11 numbers. I only need the first 8. I made a query (query1) to take the last 3 digits off. I have another table (table2)with that has the RxNum with the required 8 digits so I can find the matches. I made a second query (query2) that includes query1 and table2 to match the RxNum fields. I get a "type mismatch in expression". I have been trying to figure out how to change the expression in query2 to convert to a number but I cant figure out. I don't know code but could try if that is the only way to fix the expression to yield the results as a number.