krooyv
01-20-2005, 09:47 AM
Hi.
I have a problem with the below query. I am using an Access database.
SQL = "SELECT DISTINCT Etternavn, Fornavn, PersonID, Tittel FROM Person WHERE Fornavn LIKE '"& fn &"%' AND Etternavn LIKE '"& en &"%' ORDER BY Etternavn, Fornavn ASC"
There are some records in the DB where there are no value for "Etternavn". When I run the above query, the records without "Etternavn" don't display, only records with both "Etternavn" and "Fornavn".
Any idea how to solve this?
Thanks!
I have a problem with the below query. I am using an Access database.
SQL = "SELECT DISTINCT Etternavn, Fornavn, PersonID, Tittel FROM Person WHERE Fornavn LIKE '"& fn &"%' AND Etternavn LIKE '"& en &"%' ORDER BY Etternavn, Fornavn ASC"
There are some records in the DB where there are no value for "Etternavn". When I run the above query, the records without "Etternavn" don't display, only records with both "Etternavn" and "Fornavn".
Any idea how to solve this?
Thanks!