Solved

Search a post in Access

Posted on 2004-04-17
2
137 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
  • 2
2 Comments
 
LVL 27

Accepted Solution

by:
jjafferr earned 50 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
JSON Response and request in VB6 application 11 606
How does CurrentUser work? 10 39
vbModal 12 57
Dinamic report to Crosstab query 9 35
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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