473,508 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report including manually entered parameters

41 New Member
Dear Community

In my database I have several seminaries with several dates and participants.

I would like to make a report for the user of the database in the front end. The report shall consist a "manually defined" (meaning in the front end opens up a popup window in which the user can choose each existing seminary out of a list) seminary with all the participants. That brings me to two problems:

1. How can I make such a popup window before my report opens up?
2. How can I then make, that the chosen seminary out of the list is taken as the basis for my report? It somehow has to be sent to the query that creates the report information or even filter a report with all seminaries and all participants.

Can anybody help me doing that?

Thanks a lot!!

Mike
Aug 2 '17 #1
5 1604
ADezii
8,834 Recognized Expert Expert
  1. In your Main Form, create a Command Button that will Open an Input Form.
  2. In this Input Form, create a Combo Box that will display all Seminaries alphabetically along with a hidden, Primary Key Field.
  3. Create a Report showing all the Participants, for all Dates, for all Seminaries. The Record Source for this Report will be qryParticipants. Look at it, specifically the Relationships among the three Tables involved.
  4. Create a Command Button on this Input Form. In the Click() Event of this button, Open the previously created Report using the OpenReport() Method but have the WHERE Argument point to the Seminary selected in the Combo Box.
  5. The Report will Open displaying all Participants for all Dates for the Seminary selected on the Input Form.
  6. I do realize that this is a lot to absorb, so I Attached a simple Demo for you in order to get you started.
  7. Good Luck with your Project - any questions, please feel free to ask.
Attached Files
File Type: zip Seminaries.zip (36.7 KB, 59 views)
Aug 2 '17 #2
MikeMikeCH
41 New Member
Dear ADezii

Thanks a lot for your answer, especially for the demo! I could almost manage it. Unfortunately, when I click on my Run-Button (cmdOpenReport), a Popup-Field shows up where I am asked to put in manually the Seminar_ID. If I negate it and just click OK, the report shows up but is empty.

I allowed myself to send you my situation in a pdf. Do you maybe find the mistake?

Thanks a lot!

Mike
Attached Files
File Type: pdf objects in database and VBA.pdf (48.8 KB, 164 views)
Aug 3 '17 #3
ADezii
8,834 Recognized Expert Expert
Sounds like you have not set the Record Source for the Report which is why [Seminar_ID] is not being recognized. The Record Source of the Report must include [Seminar_ID] and it must return ALL Records. See what you can do, and if you are still having problems, can you Upload your DB stripped of any sensitive/confidential information?
Aug 3 '17 #4
MikeMikeCH
41 New Member
Dear ADezii

Wow, you are really great! I put the Seminar_ID into the source of my record and it works.

This is amazing!! Thank you so much!!!!

Mike
Aug 4 '17 #5
ADezii
8,834 Recognized Expert Expert
You are quite welcome, Mike.
Aug 4 '17 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1773
by: Mojca | last post by:
I have a problem with a report of data entered on the current day. Data are enter in a continous form. In this form I have field named Current_date_entered_data – text box which has default value...
0
3411
by: John Baker | last post by:
Hi: I am trying to put together a report that looks like a refrigerator calendar. It will show one line for each week in the month (always starting on a monday). If the month starts on some...
1
17632
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
1
1176
by: rivka.howley | last post by:
I have a table with rainfall logged on 15 minute intervals. I want to make a report that shows only those DAYS when there is actually rainfall, ie if a particular day has any rainfall at all I want...
3
3402
by: Bryan | last post by:
I've been looking over this newsgroup, but I can't find an answer to my problem. I see that a few others have posted this issue over the years, but none of them got a response. I'll give it...
1
4078
by: mtech1 | last post by:
Access 2002 I am trying to create a dynamic crosstab report that parameters come from 3 different forms. I get runtime error 3070 - The Microsoft Jet database engine does not recognize...
30
2821
by: DanicaDear | last post by:
This is a two part question... I'm after one solution but I've thought of two possible ways to make this work. I want to have a rptCustomer_Inquiry_Report that will list customer information for...
8
4278
sueb
by: sueb | last post by:
I have several reports based on queries that require the user to enter a Start and End Date. How do I access these parameters so I can print them on the report?
2
1515
Daniel B
by: Daniel B | last post by:
I have a query that generates a report based on two manually entered dates (Start Date and Stop Date). The report then shows the data that is relevant between the two entered dates. I would like...
2
1619
by: morganaj | last post by:
Hello Ladies and Gents, I have created a query in MS Access 2007. I want to be able to have the user define more than one parameter. If I have only one parameter AKA Year or PMC Name, the select...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7058
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.