report requires user input

ColinSully

Board Regular
Joined
May 9, 2002
Messages
69
I have inherited an access 97 database and I am looking to modify it. I do not have a lot of experience with Access however.

One of the reports that is being generated requires a user to input a project ID (a pop up box is displayed when you click on the report) to specify which projects data to pull from a table to populate the report.
I would like to modify this to show a list of the projects available and teh user can select one.

I do not know how this pop up box is being generated and I looked in both the code and design of the report.

If anyone has any ideas on where I could go to change this pop up box it owuld be greatly appreciated.

Many thanks,
Colin
 
is the form actually open when you get this?
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Here it is. I did not make this code and am not quite sure how to read it.

SELECT Record.ProjectID AS RequestedID, Project.ProjectName, Project.ProjectDescription, Project.ProjectAccount, FROM Record, Project

GROUP BY Record.ProjectID, Project.ProjectName, Project.ProjectDescription, Project.ProjectAccount

HAVING (((Record.ProjectID)=[Forms]![Test]![ProjectID]));
 
Upvote 0
Apart from a stray comma after Project.ProjectAccount it looks OK try,
Code:
SELECT Record.ProjectID AS RequestedID, Project.ProjectName, Project.ProjectDescription, Project.ProjectAccount
FROM Record, Project 

GROUP BY Record.ProjectID, Project.ProjectName, Project.ProjectDescription, Project.ProjectAccount 

HAVING (((Record.ProjectID)=[Forms]![Test]![ProjectID]));

Having a table called 'Record' may upset Access if it is a reserved word.
Peter
 
Upvote 0

Forum statistics

Threads
1,221,713
Messages
6,161,463
Members
451,708
Latest member
PedroMoss2268

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