Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2007, 12:44 PM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Edit Forms with Master/Multiple SubForms

Hi All,

I'm hoping that someone could help me out since I'm new with Access.

[u]Background:</u>
Database was set up as a simple data entry and reporting tool for Program Initiatives. The data entry page has main form with 9 sections (1 main section and 8 subsections). These subsections are all employed using subforms. These are all joined through the ProgramID. The Report is set up in a similar fashion with main and subreports too.


Unfortunately I ran into a couple issues.and had questions about resolving them:

* How can I save the records after everything is entered instead of as I enter them in the data entry view?
Currently, the data needs to be entered sequentially to work correctly. Is there a way to prevent the records from saving until I am done entering in all the information?

* How can I edit previously entered data in the form view?Currently, the data entry view only allows new additions; cannot edit previously entered data.

* How can I make the report searchable?
Report is not searchable because it is based on query (for the main section) and multiple SubReports (for the subsections). I have queries that make it main and subform fields searchable by returning the ProgramID, but I am having trouble tying these returned results to the Report through the ProgramID.

Thanks so much,
Nate

 
Old February 27th, 2007, 01:01 PM
Authorized User
 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To manipulat data without updating the record untill you are finished seem like you need to use "Transaction Processing"

Here are the elements of this process you will need to look it up

On Error GoTo Err_Handler

Dim WrkCurrent as Workspace
Dim fInTrans as Boolean

FInTrans + False
Set wrkCurrent = DBEngine.Workspaces(0)

…..

wrkCurrent.BeginTrans
    fInTrans = True
….

WrkCurrent.CommitTrans#fInTrans = false


Err_Handler:
If fInTrans Then
    WrkCurrent.Rollback
End If

….







Similar Threads
Thread Thread Starter Forum Replies Last Post
Tabs + Subforms + Add/Edit = No Go hkmulligan Access 5 August 10th, 2007 06:54 AM
Forms/SubForms JezLisle Access VBA 2 July 23rd, 2007 08:59 AM
Master/Sub Forms sfx Visual Studio 2005 0 July 27th, 2006 12:19 AM
Forms and Subforms auskermit Access 2 June 26th, 2006 06:02 PM
Help! With multiple subforms dstein4d Access 2 February 8th, 2006 06:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.