473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search functionality

i created a phone book in access. and i added the save/delete
functionalities... but i need to add a search one.

currently, the built in search, will display the microsoft office
search (find and replace tabs).

what i need is to have two text boxes in my form (first name, second
name) and a search buttun. when i fill in the values in the text
boxes, the search button will take the entries and search the
DB.....and i need the results to be filled in the textboxes in the
form... how would that be done? thank you

Oct 3 '07 #1
2 1515
Zeus wrote:
i created a phone book in access. and i added the save/delete
functionalities... but i need to add a search one.

currently, the built in search, will display the microsoft office
search (find and replace tabs).

what i need is to have two text boxes in my form (first name, second
name) and a search buttun. when i fill in the values in the text
boxes, the search button will take the entries and search the
DB.....and i need the results to be filled in the textboxes in the
form... how would that be done? thank you
I might have 2 textboxes; FirstName and LastName. Then have a combo box
to display/select the names

The combo box Recordsource may be something like
SELECT PhoneBookID, [FirstName] & " " & [LastName] AS FullName
FROM PhoneBook
WHERE FirstName = Forms!SearchForm!FirstName OR
LastName = Forms!SearchForm!LastName

Then when you enter something into a textbox, in the AfterUpdate event enter
Me.WhateverYourComboBoxNameIs.Requery

Then they can select the name from the dropdown list.

You can then search Phonebook table and have it fill in the names in the
AfterUpdate event of the combo box.

Oct 3 '07 #2
thanks for the help....i used a listbox instead of a combo....

and the results of the sql query are storted in a table called
results, and then listbox reads from the table now......

thank you for the help.

Oct 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Vamsee Krishna Gomatam | last post by:
Hello, I'm having some problems understanding Regexps in Python. I want to replace "<google>PHRASE</google>" with "<a href=http://www.google.com/search?q=PHRASE>PHRASE</a>" in a block of text....
2
by: John Davis | last post by:
I want to add a "quick search" functionality in ASP or ASP.NET page. I heard we can use Microsoft Indexing Service to accomplish the task, but not sure how to do it. Is this the correct approach??...
3
by: Alastair | last post by:
Hello guys, I've been building a search facility for an intranet site I'm part of developing and we've been building a search engine using Index Server. It mostly works, however there have been...
1
by: Anders K. Jacobsen [DK] | last post by:
Hi I have a webpage with aprox 500 ordinarily html pages. How can i add search functionality to these pages? I have the following: Windows 2003 with asp enabled maybe asp.net. I do NOT have...
1
by: vvenk | last post by:
Hello: I have a Form (Form A) that has a datagrid. When the user chooses to find a value, I open up a second form (Form B) (not a dialog), wherein the user enters the search string, direction...
13
by: Vai2000 | last post by:
Hi All, Planning to call the same search API which windows Search uses for searching , when u launch with Ctrl+F,you have the flexibility to provide a containing text! VB/C# any thing would work...
3
by: Paul | last post by:
Hi all, I'm looking for a bit of advice. A project i'm currently working on uses a custom search facility. The client has recently asked for the functionality of the search engine to be...
3
by: yogarajan | last post by:
Dear Friends i am devloping for search box it is woking good i want highlight my search text. My original text is Mixed case (Lower case and upper case) my search text is lower case means how can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.