473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Preventing Autosave on form with multiple subforms

I have an application with a master form with a tab control containing
nine tabs, each tab contains a subform. I have command buttons on my
main form including: Save , Cancel , Close.

My question is, how can I prevent Access from auto-saving changed or
entered data on both the main form and any subform?

The main goal is to force the user to use the 'Save' button to save any
data. I need the 'Cancel' button to just undo any changes since
opening the form or since last save. And I need the 'Close' button to
just close the form without saving any changes since last time 'Save'
button was clicked.

In previous applications without subforms I was able to accomplish a
similar scenerio with using me.undo in the unload event of the form
and/or on the click event of both the Cancel and Close buttons. This
doesnt work with the subforms, because the command buttons are on the
main form and not each subform, nor would I want that. It is also not
working all the time with the data on the master form, certain
scenerios are still saving data when closing the form. It is also
auto-saving data on the subforms as I move between the tabs, I would
like to prevent this as well

Is there anyway to accomplish this goal? Only thing I could think of
would be to make each subform and/or field unbound, and pass the data
to the tables only at the time of clicking Save. Are there any other
options as this would be a lot of code for 9 subforms, some with as
many as 20 or so fields to populate?

Any guidance is appreciated as I'm on a tight time schedule to finish
development and deploy this app.

Apr 26 '06 #1
4 3716
As soon as you leave a subform the data will be saved.
You can not prevent that, other than going 'unbound'.
Maybe you could try temptables to 'collect the data' and some append-query's to save the data to the real tables?

But do you indeed need 9 subforms to collect your data or am I missing something here??

Arno R

"microb0x" <wo*******@gmail.com> schreef in bericht news:11**********************@j33g2000cwa.googlegr oups.com...
I have an application with a master form with a tab control containing
nine tabs, each tab contains a subform. I have command buttons on my
main form including: Save , Cancel , Close.

My question is, how can I prevent Access from auto-saving changed or
entered data on both the main form and any subform?

The main goal is to force the user to use the 'Save' button to save any
data. I need the 'Cancel' button to just undo any changes since
opening the form or since last save. And I need the 'Close' button to
just close the form without saving any changes since last time 'Save'
button was clicked.

In previous applications without subforms I was able to accomplish a
similar scenerio with using me.undo in the unload event of the form
and/or on the click event of both the Cancel and Close buttons. This
doesnt work with the subforms, because the command buttons are on the
main form and not each subform, nor would I want that. It is also not
working all the time with the data on the master form, certain
scenerios are still saving data when closing the form. It is also
auto-saving data on the subforms as I move between the tabs, I would
like to prevent this as well

Is there anyway to accomplish this goal? Only thing I could think of
would be to make each subform and/or field unbound, and pass the data
to the tables only at the time of clicking Save. Are there any other
options as this would be a lot of code for 9 subforms, some with as
many as 20 or so fields to populate?

Any guidance is appreciated as I'm on a tight time schedule to finish
development and deploy this app.

Apr 26 '06 #2
Yes, Unfortuneatly, the design specs provided to me calls for 9
seperate tabs to organize the data being captured. Each tab basically
represents a different system the users are gathering data from to
imput into Access. I suppose some of the subforms could be combined
into a single table, however with a single subform I'm appearantly
going to run into this issue, so the number of tabs or subforms
shouldnt really be a factor other than amount of code required.

It appears I just have a lot of work ahead of me to make these forms
unbound....

Apr 26 '06 #3
"microb0x" <wo*******@gmail.com> wrote in news:1146070359.598148.228590
@j33g2000cwa.googlegroups.com:
I have an application with a master form with a tab control containing
nine tabs, each tab contains a subform. I have command buttons on my
main form including: Save , Cancel , Close.

My question is, how can I prevent Access from auto-saving changed or
entered data on both the main form and any subform?

The main goal is to force the user to use the 'Save' button to save any
data. I need the 'Cancel' button to just undo any changes since
opening the form or since last save. And I need the 'Close' button to
just close the form without saving any changes since last time 'Save'
button was clicked.

In previous applications without subforms I was able to accomplish a
similar scenerio with using me.undo in the unload event of the form
and/or on the click event of both the Cancel and Close buttons. This
doesnt work with the subforms, because the command buttons are on the
main form and not each subform, nor would I want that. It is also not
working all the time with the data on the master form, certain
scenerios are still saving data when closing the form. It is also
auto-saving data on the subforms as I move between the tabs, I would
like to prevent this as well

Is there anyway to accomplish this goal? Only thing I could think of
would be to make each subform and/or field unbound, and pass the data
to the tables only at the time of clicking Save. Are there any other
options as this would be a lot of code for 9 subforms, some with as
many as 20 or so fields to populate?

Any guidance is appreciated as I'm on a tight time schedule to finish
development and deploy this app.


Access is good as it is.

--
Lyle Fairfield
Apr 26 '06 #4
"microb0x" <wo*******@gmail.com> schreef in bericht news:11**********************@u72g2000cwu.googlegr oups.com...
Yes, Unfortuneatly, the design specs provided to me calls for 9
seperate tabs to organize the data being captured. Each tab basically
represents a different system the users are gathering data from to
imput into Access. I suppose some of the subforms could be combined
into a single table, however with a single subform I'm appearantly
going to run into this issue, so the number of tabs or subforms
shouldnt really be a factor other than amount of code required.

It appears I just have a lot of work ahead of me to make these forms
unbound....


Temptables will be a lot easier than going unbound IMO.
Not difficult to copy table structures and change the query-strings for your (sub)forms.
But do it your way if you like.

BTW: I just saw your other (same) post at microsoft.public.access
Please do NOT multipost.

Arno R
Apr 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a form with multiple pages on it. There is one text field on the third page of the form that I need the user to complete before leaving the form or moving...
4
by: Mike MacSween | last post by:
It's a form, with (so far) 4 tab pages on it, each of which holds 2/3/4 subforms. (I like tabbed forms by the way - do we all?) Basically the subforms are different ways of looking at the...
0
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main...
7
by: jaYPee | last post by:
I am using dataset as a datasource for my datagrid. I'm wondering how to program to autosave the changes made in a datagrid just like microsoft access. any help is greatly appreciated.
2
by: Groove | last post by:
Hey guys - I've used the Thread.Sleep(xyz) method before to trigger a pause in a sub or function. I was wondering if anyone knew of a method to have a page autosave itself after X minutes? ...
5
by: dzulai | last post by:
i have a continuous subform and its AllowAdditons and AllowEdits property are set to false. A command button("Add") in my main form sets both properties to True, enabling the New Record to appear. My...
3
by: John Wright | last post by:
I want to create an autosave and crash recovery module for my program. I imagine I would have to use a timer control on the form to call the autosave functionality but I need a starting point. I...
4
by: Harlequin | last post by:
I have a question concerning the need to trigger events within a "child" subform which is itself enbedded within a master "parent" form and which is accessible via a tab in the parent form. Becuase...
4
by: louisjones | last post by:
Please help! I'm new to this but I'll try and be as clear as possible... I have a table tblCase with an autonumber key field CaseID. I have four other tables each having a many-to-one relationship...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.