473,396 Members | 1,734 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.

How to generate Query Fields from list box selection

Hi

I am constructing an Access Database to produce traffic flow information to validate a traffic model.
I want to have the functionality to select time periods from a list box on a form and then have these applied to a query as the field headings so that the flow data can be outputted for only the specified time periods.

I.e. The user would select one or more time periods from the list box (e.g. 24 Hour flow, 18 Hour flow and 12 Hour flow) then click the command button to apply the selection. The selections would then transfer to the query and list all of the 24 Hour, 18 Hour and 12 Hour flows for all roads in the master table.

I assume this would require some VBA coding, which a have very limited knowledge of.

Thanks in advance
Regards
Mark
Dec 4 '08 #1
2 1680
beacon
579 512MB
Are you wanting to display the query results so the end user can make additional changes to the values or is this going to be used as a reporting tool?

If you need the query results, you might be interested in learning how to create custom parameter boxes so you can place your list box there. If not, the same idea applies and can be added on a form. You could set it up that when the user selects the item in the list box, the event automatically jumps you to the query, but that's all preference.

I learned how to do the custom parameter boxes on the following website and if I remember correctly it requires little to no VBA knowledge. Just some basic SQL...

Access Tips: Custom Parameter Dialogs

Let me know how it turns out for you or if there's anything else we can do to help.
Dec 4 '08 #2
ChipR
1,287 Expert 1GB
That is an excellent tutorial. Thanks for the link beacon.
Dec 4 '08 #3

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

Similar topics

13
by: John young | last post by:
I have been looking for an answer to a problem and have found this group and hope you can assist . I have been re doing a data base I have made for a car club I am with and have been trying to...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
2
by: jw56578 | last post by:
is there a way to automatically generate properties from fields in vs.net
1
by: lennyw | last post by:
Hi I'm trying to use XSLT to do an xml to xml transformation where the output xml contains summary data on the information in the input xml. I've succesfully done a Muenchian grouping of the...
6
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are...
0
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information...
1
by: Intrepid_Yellow | last post by:
Hi, I have the following code that runs my report generator. The user selects a table from a combo box, then whatever fields they want from a list box. (This part all works and the report runs...
1
by: The.Daryl.Lu | last post by:
Hi, two parts to my problem if someone can help address either one or both: 1. I want to SELECT everything in the table if it matches the criteria when the query button is pressed (this is just...
3
hyperpau
by: hyperpau | last post by:
Hi there guys! I have a Form where there are three comboboxes. This comboboxes are used as references for the parameter of 3 fields in a query. when I hit a command button in my form, it opens...
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?
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
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
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...
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,...

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.