?
Solved

Search a post in Access

Posted on 2004-04-17
2
Medium Priority
?
140 Views
Last Modified: 2010-05-18
I have created a form containing textboxes for all fields in the table "Hotel", i have added a textbox that you can type a certain text and then a search button aswell, when you press this button it should find this value in Hotel.Hotel and if it does it will jump to that post, if it doesnt nothing should happen. Maybe you check the recordset if you have found a value and then you reload the form with a specific argument??
0
Comment
Question by:illion
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 27

Accepted Solution

by:
jjafferr earned 200 total points
ID: 10852313
Hi illion,

1-
Make a query based on your Hotel Table, call it qrySearch,
in the query, make a field
AllTextBoxes: Textbox1 & Textbox2 & ... type all your Textboxes you want to search,
in the criteria write:
like "*" & Forms![YourFormName]![YourSearchFieldName] & "*"

2-
Make a Tabular Form call it frmSearch based on qrySearch,

3-
In your Original Form where you type the Search item, make a command button,
follow the wizard to open frmSearch.

How it works:
When you type an item for Searching and press the command button,
It will open frmSearch, which will take its values from qrySearch,
qrySearch will take the Search criteria from YourSearchFieldName,
the results of qrySearch will be displayed on frmSearch.

Hope this helps

Jaffer
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 10856760
Thanks for the points and the grade
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question