Sub-Form Properties Changed...

F

Fred

I have a data entry form with a sub-form. Somehow on ocassions, which I
can't track, the sub-form properties: Allow Edits, Alllow Deletions and Allow
Additions, gets changed. I've been trying to observe users and their habits
for the past few months, in the hope of trying to figure out the reason for
these changes. Somehow I can't figure out what would cause these changes.
There is nothing in the form coding that even addresses these properites. Is
there someone out there who can explain this so that I can fix this problem
for good? Right now, I have to go and change the properties manually
everytime this happends.

Thanks,
Fred
 
F

Fred

The Subform's orginal property always changes after a few weeks of usage.
Even if it the Subform inherits the MainForm's property, what would change
the property of the Subform? Why wouldn't the Subform's property change
immediately?
 
F

Fred

Yes I use those in the Main Form only...not the subform with the problem...

ruralguy via AccessMonster.com said:
Do you use DoCmd.Close acForm, Me.Name, acYes anywhere?
The Subform's orginal property always changes after a few weeks of usage.
Even if it the Subform inherits the MainForm's property, what would change
the property of the Subform? Why wouldn't the Subform's property change
immediately?
I'm pretty sure a SubForm inherits these settings from the MainForm. Does
that help at all?
[quoted text clipped - 11 lines]
Thanks,
Fred

--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com


.
 
F

Fred

I don't use acYes.

ruralguy via AccessMonster.com said:
Are you aware that the acYes at the end is for saving changes to the *form*
and not for saving the current record? It should really be: DoCmd.Close
acForm, Me.Name, acSaveNo
Yes I use those in the Main Form only...not the subform with the problem...
Do you use DoCmd.Close acForm, Me.Name, acYes anywhere?
[quoted text clipped - 8 lines]
Thanks,
Fred

--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com


.
 
F

Fred

For this particular form, I just close the form by "DoCmd.Close" only. This
is done with the "close" command button. Two other ways of closing the form
is; by "clicking" on the X (close window) and/or by any abnormal exit
(power down, task manager...etc).

I was not aware that the DoCmd.Close acForm, Me.Name, acSaveNo can change
the form property. If it does, why does this (property change) not occur
constantly. It occurs very intermittently (once in a blue moon), and to
think this
application is used by an average of 3 users a day. I've given up trying to
figure this one out. This application has been successfully running for more
than 5 years now. This is the only problem that I"ve been encountering these
past 2 years (when it started).

I appreciate your patience and help. Let me know what to do...please


===




ruralguy via AccessMonster.com said:
I miss typed the string. It should have been acSaveYes instead of acYes. The
point I was trying to make is there are ways for the properties to be changed
of which you may not be aware. Properties do not change by themselves.
I don't use acYes.
Are you aware that the acYes at the end is for saving changes to the *form*
and not for saving the current record? It should really be: DoCmd.Close
[quoted text clipped - 7 lines]
Thanks,
Fred

--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com


.
 
F

Fred

Thanks a million Mr. Ruralguy. I will keep at this "nagging loose end"
until I find out what is the source of this problem. I will try to monitor
with the Unload event.


ruralguy via AccessMonster.com said:
All I can suggest is putting some diagnostic coede in the Unload event that
writes the current value of the properties to a text file along with a time
stamp and any other information you might fine useful. It may help you pin it
down. I guarantee you what you are describing is not normal operation and may
point to other issues with the system even though as you say it has been
running for 5 years. OS's are being patched and changed as are applications
such as Access. I would treat it like a nagging loose end.
For this particular form, I just close the form by "DoCmd.Close" only. This
is done with the "close" command button. Two other ways of closing the form
is; by "clicking" on the X (close window) and/or by any abnormal exit
(power down, task manager...etc).

I was not aware that the DoCmd.Close acForm, Me.Name, acSaveNo can change
the form property. If it does, why does this (property change) not occur
constantly. It occurs very intermittently (once in a blue moon), and to
think this
application is used by an average of 3 users a day. I've given up trying to
figure this one out. This application has been successfully running for more
than 5 years now. This is the only problem that I"ve been encountering these
past 2 years (when it started).

I appreciate your patience and help. Let me know what to do...please

===
I miss typed the string. It should have been acSaveYes instead of acYes. The
point I was trying to make is there are ways for the properties to be changed
[quoted text clipped - 7 lines]
Thanks,
Fred

--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Editing in sub-form is locked 3
Prohibiting edits to data in a text box 4
Editing Data in Form 8
FORM-SUBFORM DATA ENTRY MODE PROBLEM!! 4
Access MS access forms list box problems 1
Form properties 2
Edit a Form 6
Read Only Form 3

Top