Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Query

Status
Not open for further replies.

LordMaximus

IS-IT--Management
Jan 30, 2004
48
ZA
Hi Guys

I'm quite new with Access, so please bear with me.

I want users that access my database to be able to search for records using keywords.

The database is about known issues where people can add the known issue of a certain problem as well as the solution and then later on, to be able to look it up again.

The Data is in a table called INPUT_TABLE and has the fields

PROBLEM
SOLUTION
ENTERED BY

I want to create a FORM which has a text box for "Keyword" , which will then basically have to search the PROBLEM field in INPUT_TABLE.

How do i program that, and also, how can i display the records retrieved. I understand that a query might be easier, but not sure how it works though.

Please help

Thanks
 
Take a look at the Filter and FilterOn properties of the Form object:
In the AfterUpdate event procedure of the keyword textbox
[tt]Me.Filter = "PROBLEM Like '*" & Replace(Me![keyword textbox], "'", "''") & "*'"
Me.FilterOn = True[/tt]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Sorry PH, but not sure how to do that. Maybe you know of a website that i can read this up on?

I don't know where to add the code and everything else
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top