Solved

Using a list to pull a parameter

Posted on 2014-04-29
6
56 Views
Last Modified: 2014-11-28
I have two tables: T_Students, T_Times (date/time)
I have another table that is created from those two, called T_Attendance

I'd like to be able to use a query to create a mailing list for students that attended a specific class.  Because the time field is a date/time field, it's hard to prompt the user for that parameter.

Is there a way to have a drop down list appear to select the date/time and use it as the parameter for the query?
0
Comment
Question by:BBlu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 35

Expert Comment

by:Bembi
ID: 40030404
Access provides a calendar control, which can be placed on a form and you can use the value property to buidl your query.....
Is this wht you asked for?
Means you build a form to give the user the possiblility to limit the results....
0
 

Author Comment

by:BBlu
ID: 40030409
Thanks, Bembi.  I want to be able to access this through a mail (email actually) merge, though.  I don't think I can do that with a form, right?
0
 
LVL 36

Assisted Solution

by:PatHartman
PatHartman earned 200 total points
ID: 40030472
Rather than prompting, use a combo on a form which is probably how you are populating the field to begin with.

Prompting causes problems because it requires the user to enter values multiple times plus there is no way for you to validate them so you can't tell if the user entered an invalid value.  The user would be prompted the first time when he opened the report to preview and a second time if he printed it.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:BBlu
ID: 40030946
I'll try that, PatHartman.  I'm not that strong in forms, but I'll give it a try.
0
 
LVL 1

Accepted Solution

by:
DexterFan earned 200 total points
ID: 40072314
You need a form with a combo box that is based on unique values for the dates in your T_Attendance table.  Then you create your query that includes the date field and use the builder wizard to create criteria that refers to the content of your combo box in your form.  The last requirement on your form is a command button that runs the query.
0
 

Author Closing Comment

by:BBlu
ID: 40471271
Thanks, guys.  Sorry for the delay in closing the question.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question