473,498 Members | 1,633 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_beneficiary) 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 3134
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,557 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
3171
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...
25
150689
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
3548
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...
8
4506
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...
1
3391
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,...
37
2511
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...
10
1338
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...
9
1624
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...
9
1509
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...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
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
7205
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...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4910
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
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...

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.