access formssubforms
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Access forms/subforms

Access forms/subforms

resolvedResolved · High Priority · Version 2003

replyReplySun 11 Oct 2009, 15:13Delegate Adele said...

Access forms/subforms

I've set up a form and subform...

In the form you enter employee name and date and then the subform populates timesheet information (i.e. job number, activity performed, hours spent).

1. If I open the form in "Add form" view, then a blank record is automatically added to the subform.

2. If I open the form in "Edit form" view, then:

(a) If there are no records to find, then the subform is populated with the first record in the table (which has now been edited incorrectly with the name/date entered in the form).

(b) If there are records to find, the subform is populated with those (correct) records plus the edited (incorrect) record.

How do I stop both of these 2 things happening?

For upcoming training course dates see: Pricing & availability

replyReplyMon 12 Oct 2009, 13:38Trainer Stephen said...

RE: Access forms/subforms

Hi Adele

Thank you for your question

I am assuming that you have built the subform using the wizards. If this is so, then you might well be better using a variation of the technique we covered on the VBA course.

Create an SQL string based upon the required time sheet information.

You will have to create a series of variables, set their values equal to the values of controls on the main form. You will then have to embed them into an SQL string.

You can then set the control source of the subform to that string.

If the recordset is empty, then you could simply set a condition to hide the sub form.

Hope this is helpful, if it doesn't work please get
back in touch

Regards

Stephen

Mon 19 Oct 2009: Automatically marked as resolved.

 

 

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

Access tip:

Insert The Current Time

To insert the current time into a Table field or Form textbox use:

Ctrl+Colon(:)

View all Access hints and tips


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

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

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

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

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training