access training course - subforms
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd 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 VBA Training and help » access training course - Subforms

access training course - Subforms

The UK's most regular instructor-led training courses.
Training information: access training course · Courses in microsoft access · Microsoft Office VBA training

resolvedResolved · Low Priority · Version Standard

Subforms

Jenny has attended:
Access Intermediate course
Access Advanced course
Access VBA course

by - delegate Jenny [6 posts] (2007 Aug 21 Tue, 15:00) replyReply

I have a main form (customer) which has a sub form (PetSubform). A customer can have one or more pets and the PetId, pet name and breed is shown in the subform.

I would like to double click on a row in the subform and open a form which shows all the fields related to that pet.

I can double click and get a form to open, but i need the form to open and display the right info based on the PetID.

Is there a way to select the PetId in just the selected row in the sub report and then open the form based on the petid in the selected sub report row.

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Jul 9 Wed Southwark 6 book now £214 £230
2003/XP 2008 Jul 16 Wed Bayswater 6 book now £195 £205
2007 2008 Jul 25 Fri Bloomsbury 3 book now £240 £245
2003/XP 2008 Jul 30 Wed Bloomsbury 0 FULL    
2003/XP 2008 Aug 6 Wed Southwark 6 book now £214 £230
2003/XP 2008 Aug 18 Mon Bayswater 5 book now £195 £205
Full Schedule: See all 57 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Subforms

by - trainer Richard platinum contributer[761 posts] (2007 Oct 17 Wed, 12:46) replyReply

I suggest that you use a command button to activate the form. When you draw a command button on the PETSubform, follow the wizard to:

1. Open the pet form
2. Select the value you want
3. Link the fields together

Once this is done, you can see the code behind the button, on the CLICK Event.

I would suggest that rather than using a DATASHEET view, use a CONTINOUS FORM VIEW, and have a button appear next to each record.
Arrange the fields to that it looks like a datasheet.

This will get you started in the right direction.

Let me know how you do.

Richard


Related articles

· Access VBA Training Adds Power to your Databases
· Access Database Optimization: First Normal Form
· Learn about Subqueries in Access Courses
· Turning your Spreadsheets into Interactive Data Warehouses with MS Access Courses
· Access VBA Handling Errors and Debugging Code

Access tip:

Action queries

Unlike select queries you cannot use action queries as a data source for the use with forms or reports,as they do not return a dataset that can be read.

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

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

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

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
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz