Detecting saved data

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a tab control with one tab having a sub form on it. When the tab is
changed by user I need to detect if the form had a new record added to it by
user which was saved as a result of user switching the tab. How can I do
that? The reason is that my further processing depends on the fact if user
added a new record or not.

Thanks

Regards
 
John said:
Hi

I have a tab control with one tab having a sub form on it. When the
tab is changed by user I need to detect if the form had a new record
added to it by user which was saved as a result of user switching the
tab. How can I do that? The reason is that my further processing
depends on the fact if user added a new record or not.

Thanks

Regards

Put a TextBox on the same tab as the subform and make it first in the TabOrder
on that TabPage. That way simply changing to that page will not cause the main
record to be saved. Then you can just test for that page being selected and the
NewRecord property of the main form.

The TextBox can be so small as to be effectively invisible, but it must have its
visible property set to True so it can have focus.
 
Hi

I have a tab control with one tab having a sub form on it. When the tab is
changed by user I need to detect if the form had a new record added to it by
user which was saved as a result of user switching the tab. How can I do
that? The reason is that my further processing depends on the fact if user
added a new record or not.

Thanks

Regards
Set a flag in the forms BeforeUpdate event.
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
U¿ytkownik "John said:
Hi

I have a tab control with one tab having a sub form on it. When the tab is
changed by user I need to detect if the form had a new record added to it by
user which was saved as a result of user switching the tab. How can I do
that? The reason is that my further processing depends on the fact if user
added a new record or not.

Thanks

Regards

============================================================================
================
FULL LEGAL SOFTWARE !!!
Games, video, program, image, chat, questbook, catalog site, arts, news,
and...
This site it is full register and legal software !!!
Please download and you must register software !!!

PLEASE REGISTER SOFTWARE:
http://www.webteam.gsi.pl/rejestracja.htm
DOWNLOAD LEGAL SOFTWARE:
http://www.webteam.gsi.pl

Full question and post: http://www.webteam.gsi.pl

Contact and service and advanced technology:
http://www.webteam.gsi.pl/kontakt.htm
FAQ: http://www.webteam.gsi.pl/naj_czesciej_zadawane_pytania.htm

Please add me URL for you all site and search engines and best friends !!!

Me site:
SERWIS WEBNETI: http://www.webneti.gsi.pl
PORTAL WEBTEAM: http://www.webteam.gsi.pl
LANGUAGE: http://www.webneti.cjb.net
============================================================================
================
 
Back
Top