473,385 Members | 1,474 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,385 software developers and data experts.

Display info from 2 unrelated queries on 1 form

54
I have a form that I would like to have display 2 unrelated sets of data. Right now it displays one from "finish query" by filtering based on what value is typed into a textbox. The record source is set to this query already. Now I would like to add an area to the side of this data where "hood query" can be displayed by typing the hood number into a text box. Thanks for everybody helping a noob to learn access.
Jul 26 '12 #1

✓ answered by twinnyfo

Becker,

You actually are much closer to your answer than you might think....

Create a new form, based on the record source that you want. When you save it, instead of saving it as "frmFormName" call it "fsubFormName" so you know that it is a subform. Then, from the main form in design view, you can either use the subform wizard in Access or simply drag and drop the subform onto the main form. This might depend on your version of Access.

This "should" do the trick.....

I think once you get the hang of subforms, you may find that you will use them all the time!

Cheers!

6 2652
twinnyfo
3,653 Expert Mod 2GB
Becker,

This can be done very simply by creating a subform, which has the record source of this other query, based on the text box info you gather.

Then embed that subform on the main form and you will have both sets of data. The subform's data will be controlled by the text box while the main form's data is still controlled by its own record source.

If the data were related, you could have the subform show data that was relevant to the main form's data, also. Just depends on what data you have and how unrelated it truly is.

Let me know if there is more I can help with.

Warmest regards.
Jul 26 '12 #2
Becker
54
I apologize, I should have explained this in my original post as well. I have tried a subform already, and I may just not understand their capabilities well, but it seems to show only in a format that looks just like a table or query would. Is there any way to be able to design a subform like I would a main form. I need to put certain fields in certain places and based upon a user's entry in some fields others should give back an answer based on a mathematical computation.
Jul 26 '12 #3
Becker
54
Also I need certain fields to visible only at certain times. I know how to do this in a regular form, but I cannot find a way to do this on a subform.
Jul 26 '12 #4
twinnyfo
3,653 Expert Mod 2GB
Becker,

You actually are much closer to your answer than you might think....

Create a new form, based on the record source that you want. When you save it, instead of saving it as "frmFormName" call it "fsubFormName" so you know that it is a subform. Then, from the main form in design view, you can either use the subform wizard in Access or simply drag and drop the subform onto the main form. This might depend on your version of Access.

This "should" do the trick.....

I think once you get the hang of subforms, you may find that you will use them all the time!

Cheers!
Jul 26 '12 #5
Becker
54
Thanks! This is great. Starting from the subform wizard I don't get any options about where to put stuff. Thanks for your help.
Jul 26 '12 #6
twinnyfo
3,653 Expert Mod 2GB
Glad I could help on this. Once you get the hang of subforms, they will become second nature!
Jul 27 '12 #7

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

Similar topics

1
by: iggie | last post by:
Hello, everyone. How can I display text from another form that currently has the focus. I'm doing a search in sql 2000, to dot it. I call a search form and query my criteria, when it founds the...
2
by: Jean | last post by:
I have two form and I want to display in the first form some of the info from the second one. Here is how I tried to do it: <<<<ok button of form2>>>>> Dim Myform1 As New Form1...
3
by: marslee | last post by:
I want to change a webpage so that when i move the mouse to certain area of the page, the info tip tell what the content is about. It's like moving the mouse in the desktop's my documment, when you...
3
by: matthewemiclea | last post by:
I am trying to display information in Access on a form that takes information from many different queries and puts them together on a spreadsheet or chart. Some specific info: The information I...
4
by: Joe Van Meer | last post by:
Hi, Is the datalist meant for one table or can I use it to display information from 2 different tables? Or should I be looking at a datagrid instead? I began my code and kinda ran into a snag...
4
by: MCDONAMW | last post by:
First off, forgive me for being such a noob. I typically program vb.net, but I need to do some asp.net programming. I have something simple I have no idea how to do! I have an aspx page which...
6
by: garyusenet | last post by:
I want to display some informational text in a dialog something along the lines of 'enter your text in the below box and press OK to save, or Cancel to exit'. I'm using a textbox to display this...
1
by: glaw333 | last post by:
Ok this might sound a bit stupid but I'm relatively new to this. I'll explain the background - I'm setting up a database of accounts that people have with my company. I've set up all the tables and...
1
by: c0l0nelFlagg | last post by:
I need to display a main form with 48 identical subforms. 6 columns with 8 rows. I set up a separate query for each subform, identical in structure and underlying data except the criteria in...
2
by: LuciaG | last post by:
Hello, I was trying to display table in vba form (excel 2003), but I was't successful. How can it be done? Thank you,
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.