By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 3,094 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

How do I create a search form in Access?

P: 1
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, 228 views)
Nov 28 '16 #1
Share this Question
Share on Google+
2 Replies


P: 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
Expert 100+
P: 1,107
Hopefully this will get you started: Example Filtering on a Form
Nov 28 '16 #3

Post your reply

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