A
amd via AccessMonster.com
Hope someone can help me. . . .
I have set up a parameter form to select criteria from a combo box linked to
a table, and pass that criteria to a report.
The report is based on a query and I have used [Forms]![MyParameterForm]!
[MyTableField] coding in the query successfully.
Now I wish to add several other combo boxes, also linked back to other tables,
where the selection is optional' - that is, I can choose whether to enter
anything in those combo boxes or leave them blank, and if they are blank, the
report will return all records for that field (whilst still selecting records
from the other combo boxes that do have a selection).
I have been looking through the postings for about 2 hours and have printed
down various articles but I'm now a bit confused as to whether the coding
should be in the query or the form.
I have tried using = ([Forms]![MyParameterForm]![MyTableField] OR [Forms]!
[MyParameterForm]![MyTableField] IS NULL) in the query but that returned
nothing at all on my report and, when I went back to check it, found it was
gone from the query (I believe that Access does that sometimes when the
criteria is too complex).
I'm thinking there must be an easier way to do this by coding the fields on
the parameter form or in the report rather than in the query but I can't find
what is, to me, an explanation I can understand.
I'm not an Access expert but can usually manage to muddle through by
following threads and copying and pasting coding into visual basic and a lot
of what I read in the postings now makes sense to me (but not this time).
Could some kind person please explain what I need to do and precisely where I
need to do it.
Many Thanks
Alison
I have set up a parameter form to select criteria from a combo box linked to
a table, and pass that criteria to a report.
The report is based on a query and I have used [Forms]![MyParameterForm]!
[MyTableField] coding in the query successfully.
Now I wish to add several other combo boxes, also linked back to other tables,
where the selection is optional' - that is, I can choose whether to enter
anything in those combo boxes or leave them blank, and if they are blank, the
report will return all records for that field (whilst still selecting records
from the other combo boxes that do have a selection).
I have been looking through the postings for about 2 hours and have printed
down various articles but I'm now a bit confused as to whether the coding
should be in the query or the form.
I have tried using = ([Forms]![MyParameterForm]![MyTableField] OR [Forms]!
[MyParameterForm]![MyTableField] IS NULL) in the query but that returned
nothing at all on my report and, when I went back to check it, found it was
gone from the query (I believe that Access does that sometimes when the
criteria is too complex).
I'm thinking there must be an easier way to do this by coding the fields on
the parameter form or in the report rather than in the query but I can't find
what is, to me, an explanation I can understand.
I'm not an Access expert but can usually manage to muddle through by
following threads and copying and pasting coding into visual basic and a lot
of what I read in the postings now makes sense to me (but not this time).
Could some kind person please explain what I need to do and precisely where I
need to do it.
Many Thanks
Alison