473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create a search form

3 New Member
i have developed a small database in access 2013. i have a table (tbl_beneficiar y) with the following fields:
1. groupid as text
2. groupname as text
3. Lperson as text
4. lphoto as attachment
etc.

i have created a form for using this table [frm_beneficiary]. i want to create a search function within this [frm_beneficiry] to search for: lperson, groupid, lphoto, etc.
I want to know how to use VB codes in order to perform the search function.
please see attachment for full details.
thanks.
Attached Files
File Type: docx IGA tables relation.docx (229.0 KB, 256 views)
Oct 30 '17 #1
2 3140
phillikl
16 New Member
Dums,

Not sure the reasoning behind VBA, however if you would like to use a query to drive the form...

Create query to drive "frm_beneficiry " with the elements you would like to see.

Create an unbound text box control [filterText] on your search form.

Create a cmd_button to requery results (
Expand|Select|Wrap|Line Numbers
  1.  DoCmd.Requery 
)(after user puts information in the box they can launch the query).

Under each of the desired search fields add the following to the criteria; for multiple ensure the others are in the "or" column.

Criteria:

Expand|Select|Wrap|Line Numbers
  1. Like "*" & [Forms]![frm_beneficiry]![filterText] & "*" 
There are also a few examples that will filter the data as you type, however, I have noticed the performance quickly nose dives with medium to large databases.

Best of Luck,
Kendall
Oct 30 '17 #2
NeoPa
32,564 Recognized Expert Moderator MVP
Dums:
please see attachment for full details.
That's not how it's supposed to work.

Please read the threads explaining how properly to ask your question. It is your responsibility to express the question as clearly as you can in the thread.

You are likely to find that very few experts have the patience download attachments just to get to where they should have been simply by opening the thread.

I'll leave it with you to ensure any future questions are presented properly in the thread.
Oct 31 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3174
by: jim Bob | last post by:
Hi, This is probably very simple to do so if anyone can point me to the right place for reading, it would be much appreciated. I just want to build a very basic search form where i can enter a name or part of a name into a text box, press a button, and the entered value gets inserted into a sql query and the results of the query gets...
25
150706
by: ali3n8 | last post by:
Hello I would like to create a search form for my database that searches by: First Last Contact Number Street City State Zip
6
3560
by: mercout | last post by:
Hey, I've been trying to create a search form in access for a while now, searching through books and emails. I have the search form set up with 11 combo box's, 3 text box's, a view button, and a clear button. Once the user enters certain fields, all of the boxes do not have to be filled and clicks the view button, a report will pop up with...
8
4518
by: munkee | last post by:
Hi everyone, I am using the following code adapted from Allen Browne: 'Purpose: This module illustrates how to create a search form, _ where the user can enter as many or few criteria as they wish, _ and results are shown one per line. 'Note: Only records matching ALL of the criteria are returned. 'Author: ...
1
3409
by: rachbret | last post by:
Hi, I created a database with a table that has customer info - including sales history. I want to create a form so that i can search based on various criteria (first name, last name, purchase date, etc.). I was able to create a form and tried adding a command button to search records but it only looks at the field where my cursor is and only...
37
2528
ashjones86
by: ashjones86 | last post by:
Hi All, So im looking for some help with access 2007 if at all possible. I am new to access as work has asked me to create a database, so the database side to it i have sorted i.e inputting data (google and youtube helped me with this). But now i want to create a search function for inputted information. In this instance, i want to be...
10
1352
by: sailock | last post by:
hello everyone, i am new in access and i need your help. I have a db with 20 tables and for each table i have create a form. In every table i have 2 same fields , lnumber and st.date. The search form i want to create must have these 2 fields for search and when i complete those i want to return me the forms with those parametres. There...
9
1631
by: ittechguy | last post by:
I have a unbound form which contains no data. I need to populate the form and also 3 listboxes with data using a search form which contains several search boxes in the header of my form. My idea is to create several search boxes. Some combo boxes, some text boxes. I need to use the search criteria to populate both a building ID in...
9
1516
by: JCK101 | last post by:
I have found Jim Doherty's "searchdemo.accdb" as well as "searchdemo.mdb" and have successfully run it on Access 2013 in the office. However, when I run it on my Access 2007 at home, I have run into multiple problems. Same with "searchdemo.mdb". 1) When I enter "ringo" for first name even though it is in the table, and shows a count of one...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.