dansalmada
Registered User.
- Local time
- Today, 14:12
- Joined
- Jun 7, 2004
- Messages
- 16
Hi,
I have an .mde file that does the following
and since it is an mde I cannot see how it is done)
- A form asks for criteria (first you select a filter or no filter check button)
- The form takes the criteria and (I think) with a Module and a Macro adds a piece of code to a pass through query which runs
- A report is run with the pass through query and the criteria
I know the Macro adds criteria to the pass through query because I've seen that:
Example
Original Query is
Select parts.name, parts.line, cars.number from parts, cars where parts.name =cars.name and parts.line = cars.line
When the filter button is checked "Yes" and the criteria has been written by the user you press the macro button and it adds the piece of code to the pass through query. Let's say the form contains the Text Box "Line" and I write in it "Chevrolet". When I press the macro button the code in the pass through changes to
Select parts.name, parts.line, cars.number from parts, cars where parts.name =cars.name and parts.line = cars.line and parts.line='Chevrolet'
How is that done????
I have an .mde file that does the following
- A form asks for criteria (first you select a filter or no filter check button)
- The form takes the criteria and (I think) with a Module and a Macro adds a piece of code to a pass through query which runs
- A report is run with the pass through query and the criteria
I know the Macro adds criteria to the pass through query because I've seen that:
Example
Original Query is
Select parts.name, parts.line, cars.number from parts, cars where parts.name =cars.name and parts.line = cars.line
When the filter button is checked "Yes" and the criteria has been written by the user you press the macro button and it adds the piece of code to the pass through query. Let's say the form contains the Text Box "Line" and I write in it "Chevrolet". When I press the macro button the code in the pass through changes to
Select parts.name, parts.line, cars.number from parts, cars where parts.name =cars.name and parts.line = cars.line and parts.line='Chevrolet'
How is that done????