Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / August 2004

Tip: Looking for answers? Try searching our database.

Search button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KR - 08 Aug 2004 22:29 GMT
Hi, I have a simple one table database for photo equip. I want to make a
form that will have a search button on it with a text field next to it, to
type in what I am searching for. I want to search the "Description" field on
the table (called) cameratype. I need to be able to type in only the first
few letters of the items I am looking for , ie, I need to type in Fuj  and
get a report of all my records that have Fuj in the description field....
any ideas would be great. I have already created a querie form and need to
add the search feature to it....
Thanks
Kevin R
PC Datasheet - 08 Aug 2004 23:02 GMT
Base your form on a query. Put the following expression in the criteria of the
Description field:
Like "*" & Forms!NameOfYourForm!NameOfTextBox & "*"

Add an unbound textbox to your form.

Put the following code in the Click event of the button:
Me.Requery

Note that you will in most cases get more than one record in your search.

--
                                        PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
                             resource@pcdatasheet.com
                                www.pcdatasheet.com

> Hi, I have a simple one table database for photo equip. I want to make a
> form that will have a search button on it with a text field next to it, to
[quoted text clipped - 6 lines]
> Thanks
> Kevin R
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.