Forms :: Possible To Use More Than 1 Field For A Search?

Aug 31, 2014

I have a form that has a field to search for clients. Many times those clients could have also companies in different cities and countries. Would it be possible to use more than 1 field for a search? If the company could have more than one address in the same city, then I could find it by typing in the first field the client name, second field the country and third field the address. This way I could find easy the correct client by narrow down the search with 3 fields.

View Replies


ADVERTISEMENT

Forms :: Search Combo Box To Search For A Field On Form

May 7, 2013

I have a search combo box to search for a field on my form. But it just goes to that particular record. The combo box is for client id and it has more than one record. How can I have it return just the records pertaining to the client id choosen in the combo box.

View 5 Replies View Related

Forms :: Delete Search Field In Order To Point To Appropriate Field?

May 6, 2013

I am using access 2010. I technically have an unbound form but I am changing the record source by command buttons. Switching between 3 command buttons. My problem is that I have a subform that I was linking to the form to an unbound search field. Now I want to switch the master and child links to a field on the form when I switch the record source which happen to be the same field as the unbound search field; however; it still pulls from the unbound search field rather than the field on the form. Do I need to delete the search field in order to get is to point to the appropriate field?

View 1 Replies View Related

Forms :: Empty Search Field In Forms

Apr 13, 2013

I'm using a form for book drinks to a customer room.

To find the customer, I'm using an search function (Unbound field), works fine.

The same function I'm using in the subform, for booking the articles to the customer.

Now, I'm wondering, is there an easy way to clear the search field either when starting the form or after the search is done and the article booked.

The search function is based on the macro (Search for record, condition: ="[ID] = " & Str(Nz(Screen.ActiveControl,0))).

View 2 Replies View Related

Forms :: Using A Form To Search Keywords In Memo Field

Dec 6, 2013

Currently, I am trying to search a memo field on a table by having the user enter keywords on a form (up to 10 keywords can be entered). It works when just one keyword is entered, however it doesn't work if more than one is entered. How do I account for more than one keyword being entered to search the memo field and return the recors where any of the terms show up in that field. Each one of the keywords [KW1] ...etc are in a separate unbound box.

Current formula looks as follows:
Like "*" & [Forms]![KeywordInputForm]![KW1] & "*" OR "*" & [Forms]![KeywordInputForm]![KW2] & "*" OR "*" & [Forms]![KeywordInputForm]![KW3] & "*" OR "*" & [Forms]![KeywordInputForm]![KW4] & "*" OR "*" & [Forms]![KeywordInputForm]![KW5] & "*" OR "*" & [Forms]![KeywordInputForm]![KW6] & "*" OR "*" & [Forms]![KeywordInputForm]![KW7] & "*" OR "*" & [Forms]![KeywordInputForm]![KW8] & "*" OR "*" & "*" & [Forms]![KeywordInputForm]![KW9] & "*" OR "*" & [Forms]![KeywordInputForm]![KW10] & "*"

Should I be using AND?

View 14 Replies View Related

Forms :: Runtime Error 2110 In Search Field

Dec 19, 2013

I am getting a runtime error '2110' - access can't move the focus to the control SearchResults.

This ONLY happens when the first character I type in the SearchFor field is the letter "I". All other characters do NOT give the error.

Why it only backfires on character "I"?

The Form has Search field [SearchFor] and a List box [Searchresults].

A requery occurs after every new character in [SearchFor].

View 7 Replies View Related

Forms :: Multiple Field Search In Combo Boxes?

May 1, 2013

I would like to have 5 combo boxes from which users can choose fields to search, e.g.

cbo1 - choose YEAR, TYPE, LOCATION, COST, COLOUR, SIZE
cbo2 - choose YEAR, TYPE, LOCATION, COST, COLOUR, SIZE
cbo3 - choose YEAR, TYPE, LOCATION, COST, COLOUR, SIZE
cbo4 - choose YEAR, TYPE, LOCATION, COST, COLOUR, SIZE
cbo5 - choose YEAR, TYPE, LOCATION, COST, COLOUR, SIZE

criteria are stored in txtbox1, txtbox 2 etc. so the search string could be

WHERE cbo1 = txtbox1 AND cbo2 = txtbox2 etc.

If the user doesn't choose anything for a combo, the search should ignore that field.

View 6 Replies View Related

Forms :: How To Write Vba Multi Field Search Form

Oct 4, 2013

I have a table name ex. equipment and many fields inside ex. date, equipment name (combo box) and others.

I need to make form for all fields and button search once I click on it will open a report depending on a fields i selected.

I think that I have to use VBA

View 8 Replies View Related

Forms :: Search For Multiple Values In Single Field

Apr 21, 2013

I have a table in which there are approximately 15k records. The name field has approximately 2500 unique values. I need to search the table for multiple names and return the results from the table. This would then be used as a report. Due to the users being very novice, a form is needed for the search.

Example:

Search for Smith, John; Wilson, Bill; Jones, Jeff

Return
Name Year Brand Make
Smith, John 1999 Oldsmobile 88
Smith, John 2001 Chrysler 300s
Wilson, Bill 1994 Porsche Carrera
Wilson, Bill 2007 Kia Sporty
Jones, Jeff 2004 Chevrolet Camaro
Jones, Jeff 2011 Chevrolet Impala

My knowledge of forms is basic, however, I can be a quick learner if on the right track.

View 1 Replies View Related

Forms :: Create A Multi-field Search Box That Goes To Record In A Form

Jul 7, 2014

This is what the search box must do:

- Searches 3 fields (StudentID, FirstName, LastName) and jumps to the relevant record.

The closer to the search box in the navigation bar below, the better, so this is what I would really like too.

- A repeat click would take me to the next result/record (if any) with the same criteria
- Instant search as soon as I start typing

View 11 Replies View Related

Forms :: Search Button On A Bound Form On Specific Field

Mar 20, 2013

So I'm not new to Access but I am to 2010. It has been a bit "challenging". Here's my first question:

1.) I'm trying to search on a field by using a command button. I basically want to click the button and the following message pops up: Enter MRN.

2.) When the MRN is entered, I would like the form to filter on all records that have this MRN.

3.) In old versions of Access, I would create a Macro for this and then call the Macro in the form.

4.) I've tried the FindRecord action in the Macro but it does not work. I actually came across several actions that don't seem to be working properly (getting error messages).

5.) In my head, this should be one of the EASIEST things to do. I've done this before in several different databases. I will admit it has been a few years since I have used Access for this (ie. building forms, macros etc.). I've primarly used it to pull in a data set and then run some queries to get the data I need quickly versus using Excel.

View 5 Replies View Related

Forms :: Popup Error Upon Entering Field For Search Purpose

Nov 19, 2013

I get this strange behavior in multiple forms I have. When I click on a field for the first time, I get a quick popup that immediatly disappear. It only get the popup when I enter fields I added for search purpose (a listbox which has a query as source, which I build with the value from another input field that the user type in).

I get the error when :
-I enter the input field for the first time
-I type in a value for the first time
-I select an element in the listbox
-Also when I open a form for the first time (happens only for the first opened form)

I don't even have time to see what it is in fact. I had to time a screenshot to see what it was.

So, I get an error like this : "Search referenced file : MSOUTL.OLB". No text in the msgbox, only that title.

[URL] .....

I checked google, found various reference to Outlook stuff. Problem is, I don't use any outlook stuff. I don't get any of those popup when I open the projet under Access 2013, but under Access 2010 I get them. I created the project under Access 2013, but users will use Access 2010.

View 1 Replies View Related

Forms :: Search Form With Each Field In Separate Text Boxes

Dec 8, 2014

i want to search a phone number in contact information table with column names - number, name, address, dob, gender, f-name, m-name etc and show them in a form with each field in separate text boxes in access 2010.

View 4 Replies View Related

Forms :: Multiple Field Screen Search - MSG Box Not Coming Up If No Records Found

Aug 18, 2015

I have created a multiple field search screen. The script is attached.

I would like to add a MSG Box "No records found" when the user types in information in any field where no records are available.

Just cannot get this working.

View 10 Replies View Related

Forms :: Search Field - Subform Does Not Change To Show Matching Records

May 6, 2013

All. using 2010. I have a form and a subform. my master and child links are set but when I scroll thru my form; my subform does not change to show the matching records. I do have an unbound search field for the same field as the master and child links. When I type in the search field for a record; the subform does change to that particular record. Do you think that has anything to do with it?

View 1 Replies View Related

Forms :: Filter A Form Based On A Field With Wildcard - Make Search Case Insensitive

Jan 9, 2014

Access 2003

Trying to filter a form based on a field with wildcard. My form has a txtCustFilter control where a customer's name can be entered in part or whole. The Customer's name is in PCCustomerName

This code works but, I'd like to make it case insensitive

Dim strFilter As String
strFilter = "[PCCUSTOMERNAME] LIKE ""*" & Me.txtCustFilter & "*"""
Me.Filter = strFilter
Me.FilterOn = True

View 9 Replies View Related

Using Subform For Search Criteria And Relating One Search Field To Several Columns

Apr 21, 2015

1. I created a form with some search-fields which are related to a query. Then I added a Subform in which I put some more Search criteria (So that I can easily hide and unhide those additional searchfields). It sounds strange but is necessary ;-). Now I related those searchfields in the subform to the same query. When I run that query a window pops up that I should put in a value in all those searchfields which are in the subform. But I told Access that it should display all rows, if there is no value in those searchfields. Just as I did it with the Searchcriteria in the Main form. Do I have to do something special, when I have a query which is related to two Forms?

2. I want a searchfield to search in three different columns. Usually the value will just be found in one of those columns. As the Table I search is very long and has many searchfields and multiple of those will relate to more than one column, is there an easy way to do it in VBA? As I did it by using the "or" field when designing a query, but this seems very slow and unstable.

View 6 Replies View Related

Queries :: Add A Box On Search Forms To Search 3 Cells Of Record For A Keyword

Jun 10, 2013

I currently have a database with a few search forms. I recently attempted to add a box on one of my search forms to search 3 cells of a record for a key word. What happens is when I go to search, say for P0442, it does not bring up all of the records that contain that keyword in the 3 cells I have outlined. If I step down the code in the OR boxes of the query, it seems to work better but then for some reason my other search criteria , (Tracking number etc) does not work. I will upload the database for reference. I am currently working on the Search(View Only) and that is where you will find the query to work on.

View 3 Replies View Related

Forms :: Search Text Box With Option Box As Criteria For Search

Mar 4, 2014

I am creating a a text box where the user enters a text then clicks an option from the option that is used as the criteria for the search e.g. Last Name, Phone , address then a command button wil run a query.

View 3 Replies View Related

Search Memo Field Using Another Field

Nov 8, 2006

I have a database and I need to search in the body of the memo field for information in another tables field. Please help.

table 1
field Driveline
data : 805983D1755

table 2
field memo
data:
Turn on Speedometer Switches:
NO SPDO SWTCHS REQD
C/B D/L = 804248D1795
C/B Location @ 3204.0
ALUM STD 1810 3HOLE 16MM R036-226
X = 47.9
Y = 120.0
Ctr Brg Brkt = K257-223-11
Rear D/L = 805983D1755

View 3 Replies View Related

How Search Within A Field

Jul 19, 2006

i have created an asset database for a school. i have made a query that search for a room but say, for example, i want to find the record for "room 32" the user has to put "room 32" in the search box. is there anyway for example if the user types "32" that the record will be found?

any help much appriciated :)

View 3 Replies View Related

Search In Certain Field

Jun 6, 2005

I want to built in an search button on the form in order to find records with the desired value in a certain field of the record. the caption of the textbox I want to search in is "NombreSTL" and the code below doesn´t work. whats wrong? thanks in advance...

Private Sub search1_Click()
On Error GoTo Err_search1_Click
Dim strWhere As String
strWhere = "NombreSTL"

Screen.strWhere.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70

Exit_search1_Click:
Exit Sub

Err_search1_Click:
MsgBox Err.Description
Resume Exit_search1_Click

End Sub

View 2 Replies View Related

Trying To Search A Field

Oct 15, 2006

I am trying to copile an herbal database. I have a form in which I enter the information on each herb. One field is "medicinal uses" and I list all of the uses of the herb.

Okay, so how do I get it to list all of the herbs that have a medicinal use of "cramps" or "sedative". It won't find them because it is looking for the whole list of medicinal uses, not an individual use. Is there a better way to do this, or does the program not do what I want?

-Joy

View 1 Replies View Related

Search A Designated Field

Oct 20, 2006

Hey gang,
Is there a way to click on the find record button and have it automaticly search from a specific field? The only way I know how to search a field in a form is to select the field and then click on search. I just wanted it to automaticly select a field.
Thanks gang, have a great weekend.
PuJo

View 1 Replies View Related

Search Part Of Name Field

Jul 23, 2005

Hi Guys!

I'm working on this database in which I have 2 forms:

one form has personal information (PersonalInfo)
and the other one is a search form (Search)

In the search form I have a field in which I want to type any part of the Name field in PersonalInfo form and I want to retrieve all the records that have this part of the name.

Here is what I tried:

In the PersonalInfo form, I want to the criteria of the NameField and typed the following:

Like %[Forms]![Search]![SearchField]%

but it didn't work.

Any help will be very much appreciated.

Regards,
CS.

View 4 Replies View Related

Search Criteria Within Same Field

Aug 10, 2006

Hi All,


I need to make a search criteria within the same field,
for example here 'Demo' should selected from 'xxx' to 'xxx' number.

Thanks for reading, any suggestion would be appreciated

good day :-)

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved