Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 July 6th, 2006, 08:51 AM
Registered User
Join Date: Jul 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parametric Query Problem

Hello Everyone, I'm trying to develop a parametric query in Access that will be able to display an element and its associated info without having to type in the complete name of the element.

For example: I have this project where I have to build a database which would allow us to query for deductions made to employees payroll accounts for their cafeteria transactions, State Income Taxes, Federal Income Taxes, etc, etc...

The transactions in this case are the elements. So if we want to extract all data/info relate to cafeteria, my query prompts me for that. But then I have to type in "cafeteria" completely before it will pull the related info. So I want to know how I can modify my query in the criteria section so that when I type in "caf" or "Ban" it can display all elements or transactions whose names begin with "caf" or "ban"; in this case cafeteria or bankruptcy.

I have tried using the "like" operator with the wild cards but I want to know how to incorporate that into my parametric query. Help. Thanks:)

Old July 6th, 2006, 10:36 AM
Friend of Wrox
Join Date: Dec 2005
Location: , , .
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts

Use a Combobox as your means of entering the search criteria, set Auto Expand to yes, and the RecordSource to be a query listing the values the search is checking.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query Problem. rupen Access 3 April 27th, 2007 07:43 AM
query problem purnendu2311 PHP Databases 1 October 19th, 2006 12:08 AM
parametric quries in access rit74 VB Databases Basics 0 June 23rd, 2006 09:22 PM
problem with query razmar78 SQL Server 2000 4 November 22nd, 2004 08:05 PM
query problem mateenmohd SQL Server 2000 7 September 9th, 2003 11:58 PM

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