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
Register | FAQ | Members List | Calendar | 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 Display Modes
  #1 (permalink)  
Old December 27th, 2004, 06:31 AM
Authorized User
 
Join Date: Jun 2003
Location: Swansea, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default controls, any updated?

Hi all,
Hope the festivities have left you intact?
My database has several forms for data entry each with around 100 controls. I want to make sure that users are warned that they have not made any alterations to the record so nothing is being recorded in the underlying table. I have done 2 forms setting the after update property to a boolean updated =true. When the user clicks the close button msgbox checks if updated=true before closing and warns the user if appropriate. Is there a way of programmatically working through all controls to check if their content has altered to save having to laboriously write code for each of the 100 plus controls?
Hope you can help before I go completely mad repeatedly writing thousands of lines of code.
Seasons greetings.
Thank you
Skinny

Reply With Quote
  #2 (permalink)  
Old December 28th, 2004, 04:34 PM
Friend of Wrox
Points: 3,947, Level: 26
Points: 3,947, Level: 26 Points: 3,947, Level: 26 Points: 3,947, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,150
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

You can use the On Dirty event of the entire form. That will signal you that data has been changed somewhere in the entire record.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
  #3 (permalink)  
Old December 31st, 2004, 09:13 AM
Authorized User
 
Join Date: Jun 2003
Location: Swansea, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Greg,
Sorry to say I tried that one already. On opening the form I have coded it to open on the same record as the master form (ie behaving like a subform) so that the primary key field is dirty as soon as it opens. So I'm afraid that will not work.
Is there any way to compare the controls on opening with the same controls on attempting to close the record?
Happy New Year,
Skinny

Reply With Quote
Reply


Thread Tools
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
Database not getting updated vsc33 VB How-To 4 May 15th, 2008 11:30 AM
Database not updated tiredcat Visual Basic 2005 Basics 0 April 24th, 2007 09:49 PM
OPeration must be updated khzahid Classic ASP Basics 1 April 27th, 2005 07:01 PM
Last Updated Record mrideout BOOK: Beginning ASP.NET 1.0 1 September 20th, 2004 10:50 AM
Data not getting updated Renu ASP.NET 1.0 and 1.1 Basics 10 August 21st, 2004 06:39 PM



All times are GMT -4. The time now is 09:10 AM.


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