I've got a little help from a friend and it seems that the problem is a little bit moore complex than I've described above. The Column 'Pnr' contains some posts that are empty, hence the "Type mismatch".
So, with the SQL-question below, I got the result I wanted:
SELECT ID, Pnr, KortNr
FROM...
Thanks guys for your answers...
dhookom: That one I've tried, I get the result I want, a list with the correct formatting in the column "PnrNoHyphen". The problem seems to lie with the WHERE-statement. If I use the code
SELECT ID, Pnr, KortNr
FROM tbl_Person
WHERE (Replace(Pnr, '-', '')) =...
I have a column in a table containing a sort of social security number. The mask for these numbers are nnnnnn-nnnn (750701-1234). I want to use the input of only numbers to be able to find the right post, for example if I search for "7507011234" I want the SQLquery to actually find the post...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.