G
Guest
How to filter a specific subject in a look-up field in a report, when I try
to filter it is giving the mismatch message.
to filter it is giving the mismatch message.
How to filter a specific subject in a look-up field in a report, when I try
to filter it is giving the mismatch message.
John W. Vinson said:How to filter a specific subject in a look-up field in a report, when I try
to filter it is giving the mismatch message.
You're another victim of the misdesigned, misleading, infuriating Lookup
Wizard misfeature.
Your table *APPEARS* to contain the name of a subject. It doesn't. It contains
a Long Integer number, a foreign key to the subjects table. Searching for
"Normalization" won't find the value 54 stored in your table!
You can create a Form with an unbound combo box based on the lookup table of
subjects, and use the name of the combo as a criterion in your query:
[Forms]![NameOfTheForm]![NameOfTheCombobox]
I'd recommend basing another form (or report, for printing, or both) on this
Query and opening it using a command button on the form.
John W. Vinson [MVP]
Many Thanks MR. John,
Can you please simplify it little more, as i am a new user I don't
understand it fully. I will explain it my problem as below:
My database is for recording correspondence. I want to filter the letter
received from a specific company. The company list is a seperate table. In
the main table the company name is linked to the above list through lookup
wizard & it shows data type as number. I have created report from this table.
In the query I use to type questions mark(?) as criteria in company list
field. When I preview the report it normaly ask for that field and I use to
type the company name. But now it is giving the message that "mismatch data"
Please help me to solve it. Thanks