J
jean
Hi
I have a table "tblData" containig many fields [DataCountry],
[DataRegion],[DataCity],[DataName], etc.....
I have 4 dropdown lists on a form name "FrmChoice"
First drop list named "ChoiceCountry" is issued from the field
[DataCountry] of the tblData (unique value)
Second one named "ChoiceRegion" is issued from the field [DataRegion]
of the tblData (unique value)
Third one, named "ChoiceCity" is issued from the field [DataCity] of
the tblData (unique value)
Fourth one, named "ChoiceName" is issued from the field [DataName] of
the tblData (unique value)
To obtain the right result I am working this way
I create a query named "qryData1" Source is tblData. for the field
[DataCountry] i put the following criteria :
=forms!FrmChoice!ChoiceCountry then I add a field "Expr1 : forms!
FrmChoice!ChoiceCountry and on the line under criteria "or" I put
"Is Null"
After I create another query named "qryData2" source is qryData1. for
the field [DataRegion] i put the following criteria :
=forms!FrmChoice!ChoiceRegion then I add a field "Expr1 : forms!
FrmChoice!ChoiceRegion and on the line under criteria "or" I put "Is
Null"
After I create another query named "qryData3" source is qryData2. for
the field [DataCountry] i put the following criteria :
=forms!FrmChoice!ChoiceCountry then I add a field "Expr1 : forms!
FrmChoice!ChoiceCountry and on the line under criteria "or" I put "Is
Null"
Finally I create another query named "qryData4" source is qryData3.
for the field [DataName] i put the following criteria :
=forms!FrmChoice!ChoiceName then I add a field "Expr1 : forms!
FrmChoice!ChoiceName and on the line under criteria "or" I put "Is
Null"
I am producing a report and the source is qryData4 and evrything works
perfectly.
I have use this method for many databases without problems except
one !
If I am using a large database containing 100,000 records with a
cascade of 6 queries, sometimes it takes a while before I get the
report ... but it works
Now I am trying to find an easy way to do the same
Somebody have a suggestion ?
thanks
I have a table "tblData" containig many fields [DataCountry],
[DataRegion],[DataCity],[DataName], etc.....
I have 4 dropdown lists on a form name "FrmChoice"
First drop list named "ChoiceCountry" is issued from the field
[DataCountry] of the tblData (unique value)
Second one named "ChoiceRegion" is issued from the field [DataRegion]
of the tblData (unique value)
Third one, named "ChoiceCity" is issued from the field [DataCity] of
the tblData (unique value)
Fourth one, named "ChoiceName" is issued from the field [DataName] of
the tblData (unique value)
To obtain the right result I am working this way
I create a query named "qryData1" Source is tblData. for the field
[DataCountry] i put the following criteria :
=forms!FrmChoice!ChoiceCountry then I add a field "Expr1 : forms!
FrmChoice!ChoiceCountry and on the line under criteria "or" I put
"Is Null"
After I create another query named "qryData2" source is qryData1. for
the field [DataRegion] i put the following criteria :
=forms!FrmChoice!ChoiceRegion then I add a field "Expr1 : forms!
FrmChoice!ChoiceRegion and on the line under criteria "or" I put "Is
Null"
After I create another query named "qryData3" source is qryData2. for
the field [DataCountry] i put the following criteria :
=forms!FrmChoice!ChoiceCountry then I add a field "Expr1 : forms!
FrmChoice!ChoiceCountry and on the line under criteria "or" I put "Is
Null"
Finally I create another query named "qryData4" source is qryData3.
for the field [DataName] i put the following criteria :
=forms!FrmChoice!ChoiceName then I add a field "Expr1 : forms!
FrmChoice!ChoiceName and on the line under criteria "or" I put "Is
Null"
I am producing a report and the source is qryData4 and evrything works
perfectly.
I have use this method for many databases without problems except
one !
If I am using a large database containing 100,000 records with a
cascade of 6 queries, sometimes it takes a while before I get the
report ... but it works
Now I am trying to find an easy way to do the same
Somebody have a suggestion ?
thanks