473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

combo box shows relevant reports in subform

Dear all,

I have a form called frmNum. This form has one combo box. A combo box called cboView has value list of "Line A Early", "Line A Late", "Line B Early" and "Line B Late". Now i have created different reports for each of this list. I have got a subreport box on the form frmNum. What I want to do is when "Line A Early" is selected in cboView, subreport should display "Line A Early report"; if "Line A Late" is selected then "Line A Late report" should be displayed in subreport and so forth.

How do i go on about this?

Thank you in advance.
May 10 '06 #1
1 1588
PEB
1,418 Expert 1GB
Dear all,

I have a form called frmNum. This form has one combo box. A combo box called cboView has value list of "Line A Early", "Line A Late", "Line B Early" and "Line B Late". Now i have created different reports for each of this list. I have got a subreport box on the form frmNum. What I want to do is when "Line A Early" is selected in cboView, subreport should display "Line A Early report"; if "Line A Late" is selected then "Line A Late report" should be displayed in subreport and so forth.

How do i go on about this?

Thank you in advance.
In Fact in SubForm/SubReport You can't see a Report created in the report section of your database!

This kind of reports are open with command like:

DoCmd.OpenReport reportname, A_PREVIEW

This command you need to put in After Update of your combo box for activating your reports!

I suppose that the reports are named as their names in the combo box so:
The full code is:

DoCmd.OpenReport Me!cboView, A_PREVIEW

Have a nice day!
Sep 9 '06 #2

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

Similar topics

3
by: sao | last post by:
I am currently using Access 2000. In my table it is the following fields that are set up: 1 - Staff Name 2 - Department This table is already populated with 100+ records (staff along with...
2
by: Kelly | last post by:
I have a subform that display requisition information. One of the fields in the subform is a combo box that shows who requested the requisition. The users can change who requested the requisition...
2
by: origin197511 | last post by:
Hello all... I'm having an issue with MSAccess 2000. I have a Form that holds records of my cartridge loads for a rifle and a subform that lists all groups that have been fired with that load. ...
1
by: UrKo | last post by:
Hi all, First let m say that i did search and found lots of answers to my problem and have solved it partial. I have a main form that include subform. I needed to get the data from combo box...
9
by: cocacrispy | last post by:
I've read many forum posts and articles and haven't made any headway with this. Let me describe my tables and when I'm trying to do and see if any one can help me. I have an items table, a...
2
by: jwolfley | last post by:
I'm a complete noob so excuse my ignorance. I'm looking for a simple drop down list on a form that limits the choices to foldernames that relate to the customer. I have three tables named...
2
by: dancole42 | last post by:
So I have a subform that lists the various items on a particular invoice. First, the user selects a product class from the Class dropdown. This is bound to the Class field in the InvioceLines...
1
by: gsbatch1 | last post by:
Relatively new to Access, 1 year of self taught. I have a Form (Form1) that is Unbound, with the main Combo Box, (SupCombo) that has its Row Source : Select qrySupervisors.Supervisor From...
5
by: jaynea | last post by:
Hi I have a main form which contains questions and a subform within it which contains elements which relate to the main form. they are linked by a field called question_ref so if I page through the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.