473,657 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trying to get info from form to a report

I have searched the boards but I have not found what I am looking for
yet.

I have a form with two combo boxes. When the user makes a selection
in both of the combo boxes the information will look through two
tables and return the appropriate matches. This will be very small
scale at the beginning but once I get everything working it will
include more tables and dozens of matches to be returned.

I would like the information to print to a report and not on the form.
I do not understand how to get the information into a report however.
I have seen some posts mentioning going through a query first but
again I do not understand how to do that also. The user will have
access to nothing but the form which will have a few command buttons
on it.

I am trying to teach myself Access so any help here would be greatly
appreciated. If you could reply with an example that would be even
better.

Thanks for the help.
Nov 12 '05 #1
4 1637
Design a report and place a text box on the report for each control that's
on your form. Now set the Control Source of each text box to a control on
your form like this(replace MyForm and MyControl with names of your form and
controls):

=[Forms]![MyForm]![MyControl]

Now select the info on your form and I assume you will place a command
button on your form to open the report. The form has to remain open for
this to work.
--
Reggie

www.smittysinet.com
----------
"Alex" <ab*****@verizo n.net> wrote in message
news:7a******** *************** **@posting.goog le.com...
I have searched the boards but I have not found what I am looking for
yet.

I have a form with two combo boxes. When the user makes a selection
in both of the combo boxes the information will look through two
tables and return the appropriate matches. This will be very small
scale at the beginning but once I get everything working it will
include more tables and dozens of matches to be returned.

I would like the information to print to a report and not on the form.
I do not understand how to get the information into a report however.
I have seen some posts mentioning going through a query first but
again I do not understand how to do that also. The user will have
access to nothing but the form which will have a few command buttons
on it.

I am trying to teach myself Access so any help here would be greatly
appreciated. If you could reply with an example that would be even
better.

Thanks for the help.

Nov 12 '05 #2
Hi Alex,

Given that you're trying to learn Access you might add
microsoft.publi c.access.gettin gstarted to your list of newsgroups.
Tablesdesign is another good one for getting going.

I'm not entirely clear about where and how the "appropriat e matches" you
referenced below are being returned.

One way or another you'd want the query on which the REPORT is based to have
the same criteria. So, in the QBE grid for the relevant fields in the
query for the REPORT, have each criteria refer back to it's combobox on the
form (which must still be open). Since they're comboboxes, you'll be
getting the bound column value by default. You can explicitly choose a
different column if necessary: forms!MyForm!My Cbo.column(n)

HTH
--
-Larry-
--

"Alex" <ab*****@verizo n.net> wrote in message
news:7a******** *************** **@posting.goog le.com...
I have searched the boards but I have not found what I am looking for
yet.

I have a form with two combo boxes. When the user makes a selection
in both of the combo boxes the information will look through two
tables and return the appropriate matches. This will be very small
scale at the beginning but once I get everything working it will
include more tables and dozens of matches to be returned.

I would like the information to print to a report and not on the form.
I do not understand how to get the information into a report however.
I have seen some posts mentioning going through a query first but
again I do not understand how to do that also. The user will have
access to nothing but the form which will have a few command buttons
on it.

I am trying to teach myself Access so any help here would be greatly
appreciated. If you could reply with an example that would be even
better.

Thanks for the help.

Nov 12 '05 #3
I would like to say thanks for the replies that I have recieved. I
believe I am good to go now. I have done a few quick tests with the
replies that I got and so far it looks great.

I'd like to thank Reggie for explaining the response the way that it
is (if some of the books that I have only did the same I wouldn't need
to post for help)

Alex
ab*****@verizon .net (Alex) wrote in message news:<7a******* *************** ***@posting.goo gle.com>...
I have searched the boards but I have not found what I am looking for
yet.

I have a form with two combo boxes. When the user makes a selection
in both of the combo boxes the information will look through two
tables and return the appropriate matches. This will be very small
scale at the beginning but once I get everything working it will
include more tables and dozens of matches to be returned.

I would like the information to print to a report and not on the form.
I do not understand how to get the information into a report however.
I have seen some posts mentioning going through a query first but
again I do not understand how to do that also. The user will have
access to nothing but the form which will have a few command buttons
on it.

I am trying to teach myself Access so any help here would be greatly
appreciated. If you could reply with an example that would be even
better.

Thanks for the help.

Nov 12 '05 #4
Alex, These news groups have helped me out many, many times. Anytime I can
help someone else in any way, it's my pleasure.

--
Reggie

www.smittysinet.com
----------
"Alex" <ab*****@verizo n.net> wrote in message
news:7a******** *************** **@posting.goog le.com...
I would like to say thanks for the replies that I have recieved. I
believe I am good to go now. I have done a few quick tests with the
replies that I got and so far it looks great.

I'd like to thank Reggie for explaining the response the way that it
is (if some of the books that I have only did the same I wouldn't need
to post for help)

Alex
ab*****@verizon .net (Alex) wrote in message

news:<7a******* *************** ***@posting.goo gle.com>...
I have searched the boards but I have not found what I am looking for
yet.

I have a form with two combo boxes. When the user makes a selection
in both of the combo boxes the information will look through two
tables and return the appropriate matches. This will be very small
scale at the beginning but once I get everything working it will
include more tables and dozens of matches to be returned.

I would like the information to print to a report and not on the form.
I do not understand how to get the information into a report however.
I have seen some posts mentioning going through a query first but
again I do not understand how to do that also. The user will have
access to nothing but the form which will have a few command buttons
on it.

I am trying to teach myself Access so any help here would be greatly
appreciated. If you could reply with an example that would be even
better.

Thanks for the help.

Nov 12 '05 #5

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

Similar topics

11
3575
by: HolaGoogle | last post by:
hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form (DisplayUserDatabase.asp)??? ** actualy it does load and display the database randomly....otherwise it's always runs into a session time out.... **Also when i save new account info (You'll notice that i've been asked to put a save button near each record...so, it's not one global save it's by record), i'd like to be...
2
1675
by: Catherine Jo Morgan | last post by:
How do you set up a form or report so that it's possible to click on a field and see more details? This is a feature in most accounting programs, for example. In a profit and loss report, you can click on a category total and get a list of the relevant transactions in that category, for that time period. If you can tell me what this is called, or the basic steps involved, maybe I can get the step by step instructions from a book. Right...
4
370
by: Wayne | last post by:
rr@kristin.school.nz (Wayne) wrote in message news:<7ec36840.0403301824.16f2cd9f@posting.google.com>... > I have a subreport in my report and when it contains exactly one row, > it works fine. In every other case, it displays all but the last row. > The subreport grows large enough to show this last row but leaves it > blank. > Can anyone shed some light on this for me? > Wayne Since posting the original message I have had no replies....
14
2157
by: deercreek | last post by:
Could use some help. I don't know if I can even do whatI'm trying to do. I have a text box in a report under the details section. It will return a value for each line on a sepcific record set. There may be 1 line or 10 lines. What I want to do is sum the totals in that text box. I tried putting the following code in the control source. It dosn't like it. I don't know if I'm just putiing it in incorrectly or if it will work at all. Thanks...
8
1954
by: Christina123 | last post by:
Currently working with Microsoft Office 2000 and whatever version of Access came with that. I am developing a database to track the comings and goings of shared tools. Everything works splendidly except I have printing issues, primarily I have no idea what I am doing. I have a form that contains the date and the info of the person doing the ordering as well as a subform that has the serial number of the part, the description and storage...
3
5722
by: gmazza via AccessMonster.com | last post by:
Hi there, I am trying to run a report using a parameter for where the user chooses a month from a combo box. Then on the report, I want it to compare the month to a date field and choose only those dates with the month chosen from the parameter form. Basically, its to see who's birthdays are coming up. So on the parameter form you choose November, so then I want the report to display all the kids who's birthdays are in November. Any help...
5
1373
by: Christina123 | last post by:
I have a database that tracks the withdrawls and returns of shared assets. I have a query that a report runs off of that is supposed to only show the most current withdrawl (based off of a yes/no check box in the order form and return forms). However, the report shows every time the item has ever been removed, any time the check box has been checked. I think that if I set it so that if the return date is less than the order date, show the...
7
1344
by: mulchgirl | last post by:
When we have one of our users is entering info into a table via a form and another user attempts to print a report based on the same table, they get the message "the databaase engine could not lock table "Freight" because it is already in use by another person or process". Is there a way around this?
9
1842
by: sparks | last post by:
Right now I had to build a report that allowed the people to check for gross outliers in their data input. short I am looking at 2.5* std dev + - anyway I used 2 dummy variables in the query the report is tied to. start date and end date. This pops up an input box for these values and they put in 11/01/08 and 11/31/08 and it runs the report showing the outliers. I watched and everyone is looking at month not date Now I was thinking...
0
8820
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
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
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
7314
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...
0
5630
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
4150
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 we have to send another system
2
1937
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.