Solved

Search a post in Access

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now