Solved

Search a post in Access

Posted on 2004-04-17
2
136 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TT Auto Dashboard 13 92
Help me. 3 57
Child Form in front 4 47
VBA - Excel, Hide/unhide range of rows on sheet with listbox selection 9 48
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

832 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