Help with Parameter Query and Entry Form

Def7

Board Regular
Joined
Mar 9, 2009
Messages
61
I need some help setting up a form. I created a Parameter Query that returns back any Vehicle ID’s where certain criteria are not met. I then created a form where the different Vehicle ID’s can be entered and then a report in created base on this. I am trying to set it up so that I can enter Vehicle ID’s one at a time in the same box and somehow after every entry it creates a report that once all the Vehicle ID’s all imputed I can have the list generate a report. This will be a daily process in which different ID’s will be entered everyday. I have only been able to make it work by setting up the form with multiple boxes for each particular ID, but there can be up to 20 a day and I don’t want to have to set up 20 different boxes if it can be helped. Any help would be greatly appreciated.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You may create a Table (let us call it ParameterTable) to store the VehicleIDs and Create a Datasheet Sub-Form for the Table. Insert this Sub-Form into the Main Form. You can keep adding the Vehicle IDs as separate records in the Parameter Table.

Reference the VehicleID field of the ParameterTable in the Query Criteria Row in the following manner:

IN (SELECT VehicleID FROM ParameterTable)

This will select all the Records matching the Vehicle IDs in the Parameter Table from the Main Table for your Report.

Look for examples of Parameter Query at:
http://www.msaccesstips.com/2008/10/multiple-parameters-for-query.shtml
 
Upvote 0

Forum statistics

Threads
1,203,658
Messages
6,056,583
Members
444,877
Latest member
kat517

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top