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

display query results in subform

Hi.

I have a form with 5 buttons, each of which runs a slightly different query against the same table. I want to be able to display the query reults in a subform so that the user can click an view from the same screen. Any hep would be greatly appreciated.
Oct 27 '11 #1
3 2482
NeoPa
32,556 Expert Mod 16PB
You design the form that's to be used as the subform then, depending on how much needs to be changed between each version, you either change the RecordSource of the subform when you click a button (In the code behind the button), or you set/change the Filter instead.
Oct 27 '11 #2
Thanks for replying. I think I might be overcomplicating this. All I want is for the results of the query to show up inside the form instead of as another tab in Access. They can remain in tabular format. I figured I would need to use a subform but perhaps there is another way? The catch is that I have 5 different queries. maybe a split form?
Oct 27 '11 #3
NeoPa
32,556 Expert Mod 16PB
It seems a sub form is a perfectly appropriate way to proceed. In fact the suggestions I posted earlier seem to fit the bill more than adequately. I don't understand your current reservations.
Oct 27 '11 #4

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

Similar topics

3
by: William Wisnieski | last post by:
Hello Everyone, Access 2000, I have a main unbound form with a bound datasheet subform . The subform is bound to a query that returns records based on criteria in the main form. The user...
9
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped....
2
by: davkohne | last post by:
I have two forms a main and sub. On the main form, I want to select a given set of criteria (i.e., "Project"), which pulls from a query and udpates a report number at the same time. I want to...
1
by: aaronkm | last post by:
Hello thescripts and well met. I've recently been handed a new duty and have the joy of 'crash coursing' MS Access. Things are working well but I've ran into a problem that I can't seem to find...
1
by: igor221189 | last post by:
Hello everyone. I have Access 2000 database which holds student records in the school.It stores subject grades for each student.In the 'Student Grade Form', I would like to search student surname...
16
by: dougmeece | last post by:
Good day everyone, I have a database with 2 main forms. The first form is used to add records to the database and contains a command button that opens the 2nd form for records searching. On...
4
by: dougmeece | last post by:
Good Morning again everyone, I am having trouble understanding how to display the results from my query in a subform instead of it opening a separate window. I have a form that queries a...
2
by: Amie | last post by:
Hi, how do you display the results of an sql query and display it onto the html form or html table Thanks
4
by: kstevens | last post by:
(Yes... i capitalized the S on purpose) I didnt know before today that dlookup only found the first result. I am actually trying to display the results of a query in a report, but there are...
8
by: Erik Pen | last post by:
My main form has several subforms which display the results of queries. I want to display a message in a subform when it's query is empty indicating that there are no records meeting the form's...
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:
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...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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
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
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...

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.