Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2004, 02:14 PM
OCM OCM is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default New field (drop down)

Greetings,

I have created a database to track applicants’ eligibility process. So far, the database works fine and just recently, I was approached to add a new field (source of Application) where applicants learn about our program (Friend, School, Doctor, Advertisement, other etc.)
I'm not sure if this is the right way to do it, but I've created a lookup table 'tblAppSource' w/ list of options (Friend, School, Doctor...)also added a field called AppSource in one of my table and join them in table level.
I’m using access 2003, and given the type of report I need to generate (Source of Application)how do I go about creating the query so I can pull in my report how many were referred by Friend, by Family, by School etc.

Thank you in advance,

OCM


 
Old October 3rd, 2004, 04:38 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

if you have created a relationship between the applicant table the appsource table.

start a new query
add your to table (applicant, appsource)
in the grid add the columns from applicants you want to see and then the columns from appsource, make sure to include the column that stores your source description

follow this example from sample northwind database

SELECT Categories.CategoryName, Products.ProductName, Products.QuantityPerUnit, Products.UnitsInStock, Products.Discontinued
FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID
WHERE (((Products.Discontinued)<>Yes))
ORDER BY Categories.CategoryName, Products.ProductName;

Note:

Avoid using a lookup table from your applicant table

create a separate table
[u]tbl_appsource</u>
appsourceID
appsource_desc

In your entry form create the combo box the user will use to select the referral type.





Similar Threads
Thread Thread Starter Forum Replies Last Post
populating drop down through text field nasirmunir Javascript How-To 5 June 30th, 2008 11:01 AM
How to drop a field with primary key jeffcflam Pro VB Databases 1 May 4th, 2006 01:51 PM
show/hide text field from select (drop down) Gotaka4 Javascript 6 December 7th, 2005 05:44 AM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
Populating Drop Down based on other drop down jeffbarclay Java Databases 1 November 7th, 2003 12:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.