buttons
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Buttons

Buttons

The UK's most regular instructor-led training courses.
Training information: introduction access training · Microsoft.access.courses · Microsoft Access Training
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version 2007

Buttons

Fiona has attended:
Access Introduction course

by - delegate Fiona [2 posts] (2008 Jun 23 Mon, 16:15) replyReply

Is it possible to insert buttons on forms that will bring up all information/records related to a particular ID?

Access VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2009 Feb 5 Thu + 6 Fri Southwark 3 book now £475 £495
2003 2009 Mar 5 Thu + 6 Fri Southwark 5 book now £450 £485
2003 2009 Apr 8 Wed + 9 Thu Southwark 7 book now £345 £399
2003 2009 May 7 Thu + 8 Fri Southwark 7 book now £345 £399
2003 2009 Jun 4 Thu + 5 Fri Southwark 8 book now £275 £399
2003 2009 Jul 9 Thu + 10 Fri Southwark 8 book now £275 £399
Full Schedule: See all 14 Access VBA course dates.
Bookings currently available until 4th March 2010.

RE: Buttons

by - delegate Mark silver contributer[50 posts] (2008 Jul 6 Sun, 19:45) replyReply

One way to do this is to add a combo box button on your form (from Tool Box in design mode) on your form. When you add the box to the form you will see 3 options. Select Find a Record on my Form Based on the Value I Select in my Combo Box. Then press Next and choose the field by which you wish to search (ID), and then go on to Finish. You can then go to form view to check the result. You should get a drop down showing 8 values in your chosen field and scroll bar if you have more than 8 in the list. I often prefer to see more than 8 list items at a time. To alter this go back to design view and double click on the combo box to call up properties (or you could right click and select properties). Go to the Format Tab and you will see List Rows about one third the way down which is usually on 8 and you can change this --try 30 or 40. You may need to see more about what records are behind the ID in order to know what to select, particularly (as often the case) if the ID is a number, then you can select to have two columns or more to show you what you are selecting but have the ID as the field for which related records are pulled.

If you are working with a form which shows one record on the screen at a time but with others on other pages, the above will call up the record relating to the ID you select in the combo box. If you have a sub form for to show the related set of ‘child’ records then all the records related to the ID will be in view or at least via a scroll (or the record navigation controls) within the sub form window.

Another method is to include all the records you want to call up in a query, put ID as a parameter input. You can create a form based on this query to present the information as you want and save and close the form. Then add a button on the form from which to call up the new form, and set this as Open Form, select the name of your new form, and finish. This makes sense on a form on which you can see a summary of the information or the 'primary' table information so you know which ID to put into the parameter box.

The above may suffice for you, but there are other methods, including having a small button against each record line in a multi record view, so that a click on the button calls up the subset of related data, or it can be done so that you click on the ID cell to call up the records, and no button is required, although this will mean how to access records is not obvious to other users unless you put an instruction in. The methods in this paragraph require (as far as I know) that you need to use a Macro or some VBA code.

RE: Buttons

by - delegate Mark silver contributer[50 posts] (2008 Jul 6 Sun, 19:47) replyReply

In the above reply I forgot to say, Hi Fiona and I hope this is what you needed, Regards, Mark


Related articles

· Turning your Spreadsheets into Interactive Data Warehouses with MS Access Courses
· Quick MS Access Training: Creating Custom Database Tables in 12 Simple Steps
· 3 Reasons to Switch from Excel to MS Access - You'll be Glad You Did!
· Get More Out of MS Access Courses
· Quick Access Course: Creating a Customer Contact Database in 8 Simple Steps

Please browse our web site to find out more about
introduction access training and other Microsoft training courses.

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Rate this page:
3.0/5 (5 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
Microsoft access courses · Microsoft training access course
Microsoft+access+training · Access courses in london

Training Information
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo