473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

selecting a reports from a combo box on a form

Hi all,

I was hoping someone could provide a little direction for me with this
problem.

I have three reports already made, we'll call them myRpt1, myRpt2 and
myRpt3, in my Access db, and I want to be able to fill a combo box on
a form with these three values and be able to select one for viewing
in this manner. I'm not sure how to bring in each of the reports and
treat them as objects for the combo box. Any ideas? Thanks in
advance!

Tom
Nov 13 '05 #1
1 1362
You could put a combo on a form, and give it these properties:
Name cboReport
Row Source Type Value List
Row Source "myRpt1"; "myRpt2"; "myRpt3"
After Update [Event Procedure]

Click the Build button (...) beside the After Update property.
Set up the code like this:

Private Sub cboReport_After Update()
If Not IsNull(Me.cboRe port) Then
DoCmd.OpenRepor t Me.cboReport, acViewPreview
End If
End Sub

If you want to read the names of all reports into a combo, see:
http://members.iinet.net.au/~allenbrowne/ser-19.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Thomas McK" <ed********@yah oo.com> wrote in message
news:85******** *************** ***@posting.goo gle.com...

I was hoping someone could provide a little direction for me with this
problem.

I have three reports already made, we'll call them myRpt1, myRpt2 and
myRpt3, in my Access db, and I want to be able to fill a combo box on
a form with these three values and be able to select one for viewing
in this manner. I'm not sure how to bring in each of the reports and
treat them as objects for the combo box. Any ideas? Thanks in
advance!

Tom

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2951
by: DD | last post by:
Hi I want the user to be able to view all reports from a form either by way of a list box or dropdown or ?? any help please DD
4
4742
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I have created a database consisting of student athletes.  I have now learned how to join two different tables in a query so that I might generate a report. Specifically, student athletes at a community college are required to graduate with an AA or AS degree.  Consequently, various steps are in...
2
2481
by: misscrf | last post by:
I have a search form that is great. I have modified it in such a way, that when search results come up I can bring it back to a useful spot, say an entry form or a report. Here is my lemon ( hoping someone can help me make lemonade!) I have this form implemented with my Candidate entry form, as a find. click the find button, search, subsearch form shows results, click select on the needed record, and the search form closes, the entry...
3
2906
by: M.L. Abram | last post by:
Hello all, I do not know if this question is regarding table design, queries, or programming. Below, I have given a table design using Access 2003. Fields 'Product' and 'Color' are primary keys and 'Active' is a Boolean data type. What I am trying to accomplish is having only one record selected active out of the 'Product' field for each type. If possible, have the user be able to do this task while viewing the data within a...
0
1589
by: Kovax | last post by:
I am building a database for our HR dept. I have a combo box that allows the user to select an employee name (this is completed) then a second combo box that allows the user to select a report that is available for the employee selected in the first combo box (this is completed). So if the user selects John Doe in the first combo box, and Mr. Doe has a disciplinary record in the Disciplinary Table, a "Disciplinary Incident Report" is...
2
3627
by: jw01 | last post by:
I have a form in which there is one combo box and three text boxes: Combo Box: -> Item A -> Item B -> Item C TextBox1: TextBox2: TextBox3:
2
1533
by: Lucas45 | last post by:
Hi I am a newbe at this I have created 3 tables one called computers the other software- and the third installed apps What I am trying to do via a form is to have on the one side a combo box showing the p/c names, and on the other side a combo box showing all the apps. What I am trying to do is to select a pc name from the p/c name combo and then selecting a few apps from the other combo box (installed aps) and this info is written to a table...
7
2067
by: google | last post by:
I am trying to automate the way reports are printed in an Access 2003 database - I have ~200 records (people) who require between 5 and 10 customized reports (depending on values within certain fields) - currently I print each report by selecting all employees and printing one report at a time - once all reports are printed, I manually collate the packages - I would like to be able to have a combo box (or other option) highlight the...
8
2194
by: lrw0831 | last post by:
On my main form I have a Product drop down. Once a product is select, the Module combo box is to be popluated with modules related to that product. The combo box populates correctly, but if I click on any module, it automatically selects the first item in the box. Example: My Product is CA, the modules are Assessment, Capacity, Implementation, Planning, Evaluation, REports, Other. If I select CA, then under module I select...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10618
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.