Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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:)

Reply With Quote
  #2 (permalink)  
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
Default

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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:34 AM.


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