473,326 Members | 2,126 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,326 software developers and data experts.

How do I create a search form in Access?

Good afternoon all.

I'm new to the forum but have a bit of a conundrum (although it won't be one to you guys) I need help with on Access 2007.

I have an Excel spreadsheet with lists of my customers in different tabs for different branches across the country. What I'm doing is creating a database in Access where I can store all the completed information and then search for various customers when I want their information.

At present I have a table for my customers based in one area (Swindon), a "front page" form with various buttons on - most of which are not yet working - and finally an XSearch form where I would like to implement the search function.

If possible, I'd like to be able to type a full or partial customer name in the first search box, hit the button and it shows me records which match.

In the second search box, I'd like to be able to search for account codes - e.g A1234 - and hit the button and it shows me either the record that matches fully or if there's a partial match only - show that.

Finally, I'd like a combo box or list box to dropdown and allow me to select a "Credit Limit" and it show me all records with that credit limit.

Apologies that I've rambled on - I'm trying to give you as much information as possible as I'm very much a beginner on Access and when I tried searching myself for the answer, either I wasn't asking the right question in Google or I couldn't fathom the answer(s).

I've also attached the database - please ignore it's crude and basic nature.

Thanks in advance

Rich
Attached Files
File Type: zip My Customers.zip (450.5 KB, 351 views)
Nov 28 '16 #1
2 8916
Zakoss
6
So add the text box
  • In the Navigation Pane, right-click the form that you want to change, and then click Design View on the shortcut menu.
  • On the Design tab, in the Controls group, click Text Box.
  • Locate the area in the form in which you want to add the control, and then drag the pointer on the form to create the text box.
  • Right-click the text box, and then click Properties on the shortcut menu.
  • In the property sheet, click the All tab.
  • Set the Control Source property to the following value:
  • =DLookup("[ContactName]","[Suppliers]","[SupplierID]=" & Forms!Products!SupplierID)
  • Save your changes, and then close the property sheet.
Nov 28 '16 #2
jforbes
1,107 Expert 1GB
Hopefully this will get you started: Example Filtering on a Form
Nov 28 '16 #3

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

Similar topics

7
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...
0
by: _TeCk_ | last post by:
Do anyone know the name of the control : Search in Access. I want to know when the user leave the search form to refresh a subform. Thank's!
25
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
1
by: hottoku | last post by:
Hi All, I'm having quite a bit of trouble designing a search tool to work with my database. I have found lots of examples from Microsoft Templates to Allen Browne's sample search form. The...
2
by: MNNovice | last post by:
I am working on a database on my CD collection using Access 2003. Some of the table structures are given below. Table 1 tblMusicCategory Field 1: MusicCategoryID - Auto Number (PK) Field 2:...
6
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...
9
f430
by: f430 | last post by:
i have been trying to write a search code for a similar database, and i followed all the steps that were provided above, and my code was close to what lightning had but i have added date range in my...
37
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
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.