A
Ann-Sofie Karlsson
Hi
I didn't explain myself carefully. The first guestion gives the right result
but the second question doesn't. And I don't understand how they can look
the same in Access 97:s designview.
I have two queries that look the same in the the designview but has
different SQL code . The results from the queries are also different. I
wonder how they can look the same in designview but give different results.
What's the reason?? It should be in the SQL code but I can't see it.
Here are the two queries
SELECT MSysObjects.Name ,Type FROM MSysObjects
WHERE Not Type Is Null AND (Type=Forms!frmSLT!cboObjTypeFilter OR
Len(Forms!frmSLT!cboObjTypeFilter & '')=0) And Left$([Name],1)<>'~'
ORDER BY Type, MSysObjects.Name;
SELECT MSysObjects.Name , Type FROM MSysObjects
WHERE (Type=Forms!frmSLT!cboObjTypeFilter And Not Type Is Null) AND
Left$([Name],1)<>'~' OR Left$([Name],1)<>'~' AND
Len(Forms!frmSLT!cboObjTypeFilter)=0
ORDER BY Type, MSysObjects.Name;
Please help
Fia
I didn't explain myself carefully. The first guestion gives the right result
but the second question doesn't. And I don't understand how they can look
the same in Access 97:s designview.
I have two queries that look the same in the the designview but has
different SQL code . The results from the queries are also different. I
wonder how they can look the same in designview but give different results.
What's the reason?? It should be in the SQL code but I can't see it.
Here are the two queries
SELECT MSysObjects.Name ,Type FROM MSysObjects
WHERE Not Type Is Null AND (Type=Forms!frmSLT!cboObjTypeFilter OR
Len(Forms!frmSLT!cboObjTypeFilter & '')=0) And Left$([Name],1)<>'~'
ORDER BY Type, MSysObjects.Name;
SELECT MSysObjects.Name , Type FROM MSysObjects
WHERE (Type=Forms!frmSLT!cboObjTypeFilter And Not Type Is Null) AND
Left$([Name],1)<>'~' OR Left$([Name],1)<>'~' AND
Len(Forms!frmSLT!cboObjTypeFilter)=0
ORDER BY Type, MSysObjects.Name;
Please help
Fia