Solved

Select value in drop-down in form, display data in report

Posted on 2011-02-16
5
974 Views
Last Modified: 2013-11-27
I have a MS Access 2007 DB in which the user will select the last name of an agent in the 'Search Form'.  I do not know how to program Access to have the data related to that Agent queried against my main table of "Main" and then displayed in the 'Report' report. Please see attached Database and if you could explain some of the steps taken so I can learn I would really appreciate it.  Thank you.
Working-Database1.accdb
0
Comment
Question by:James0903
  • 2
  • 2
5 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 333 total points
ID: 34913053
test this

* set the record source of the report to table "Main"
* set the textbox control source to respective fields from table main


* select an aget from the dropdown before opening the report via  the command button
* apply the "where condition" using the value selected from the combo box when opening the report



Working-Database1.accdb
0
 

Author Comment

by:James0903
ID: 34913063
I will give this a try.  Thank you again capricorn1.
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 333 total points
ID: 34913090
start with this link


Creating a Report
http://www.functionx.com/access/Lesson23.htm
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 34946480
Also, it is better to use an EmployeeID (or some such) as a key field.  You may have more than one person with the same last name.  You can set up a combo box to be bound to the key field, while displaying the last name or other meaningful field(s).
0
 
LVL 31

Assisted Solution

by:Helen_Feddema
Helen_Feddema earned 167 total points
ID: 34946497
See my Access Archon #42, Selecting a Filter for a Report:

http://www.helenfeddema.com/Files/accarch42.zip
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now