crayfishgirl
New member
- Local time
- Today, 11:04
- Joined
- May 9, 2007
- Messages
- 7
I'm hoping this will be an easy question for most people.
I have a query with three text fields of insect names (Genus species, Family, Order). In some cases, where the the insect could not be identified to the Genus species level, it was identified at the Family or Order level. I'm attempting to write a query that will result in a single field of names where the Genus species name will be listed where its available, but if that is null, it will list the Family name. If the Family name is also null I want it to list the Order name. I thought I could do this in a second qry if I could get the first step done but have been unsuccessful so far.
The SQL expression I have now is below but its only listing the Genus species name (which I already have as its own field).
taxa: IIf([BMI_GenusspeciesMerge_AllData_qry]![Genusspecies] Is Null,[BMI_GenusspeciesMerge_AllData_qry]![Family],[BMI_GenusspeciesMerge_AllData_qry]![Genusspecies])
I'm a self-taught ACCESS user and am pretty okay with most things but am SQL and syntax challenged. Help (and thanks!)!!
camille
I have a query with three text fields of insect names (Genus species, Family, Order). In some cases, where the the insect could not be identified to the Genus species level, it was identified at the Family or Order level. I'm attempting to write a query that will result in a single field of names where the Genus species name will be listed where its available, but if that is null, it will list the Family name. If the Family name is also null I want it to list the Order name. I thought I could do this in a second qry if I could get the first step done but have been unsuccessful so far.
The SQL expression I have now is below but its only listing the Genus species name (which I already have as its own field).
taxa: IIf([BMI_GenusspeciesMerge_AllData_qry]![Genusspecies] Is Null,[BMI_GenusspeciesMerge_AllData_qry]![Family],[BMI_GenusspeciesMerge_AllData_qry]![Genusspecies])
I'm a self-taught ACCESS user and am pretty okay with most things but am SQL and syntax challenged. Help (and thanks!)!!
camille