Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 23rd, 2007, 12:44 PM
Registered User
 
Join Date: Nov 2006
Location: , , USA.
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

Reply With Quote
  #2 (permalink)  
Old February 27th, 2007, 01:01 PM
Authorized User
 
Join Date: Feb 2007
Location: Wellingborough, Northamptonshire, United Kingdom.
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

….


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:42 PM.


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