PC Review


Reply
Thread Tools Rate Thread

How do I tell if table contents have changed?

 
 
Jeff Stroope
Guest
Posts: n/a
 
      25th Jan 2008
Hi - in my database I need to send a notification email if the contents of a
particular table have changed. The problem is, sometimes the user changes
his mind and undoes his edits. In that case, I don't want to send the email
because it will be just a false alarm. Is there an easy way to check a table
when the user exits the databse to see if its contents have changed from
their values at the beginning of the user's session? I was playing around
with the LastUpdated property of the TableDef object but it didn't seem to
suit my needs.
--
Thanks,

Jeff
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      25th Jan 2008
On Thu, 24 Jan 2008 16:16:06 -0800, Jeff Stroope
<(E-Mail Removed)> wrote:

I am assuming that table is updated using some form. In the
Form_AfterUpdate you can write your code: at that time the edits have
been committed to the db and it's too late to undo.

-Tom.


>Hi - in my database I need to send a notification email if the contents of a
>particular table have changed. The problem is, sometimes the user changes
>his mind and undoes his edits. In that case, I don't want to send the email
>because it will be just a false alarm. Is there an easy way to check a table
>when the user exits the databse to see if its contents have changed from
>their values at the beginning of the user's session? I was playing around
>with the LastUpdated property of the TableDef object but it didn't seem to
>suit my needs.

 
Reply With Quote
 
Keith Wilby
Guest
Posts: n/a
 
      25th Jan 2008
"Jeff Stroope" <(E-Mail Removed)> wrote in message
news:976588CB-E1F5-4DC6-AA0C-(E-Mail Removed)...
> Hi - in my database I need to send a notification email if the contents of
> a
> particular table have changed. The problem is, sometimes the user changes
> his mind and undoes his edits. In that case, I don't want to send the
> email
> because it will be just a false alarm. Is there an easy way to check a
> table
> when the user exits the databse to see if its contents have changed from
> their values at the beginning of the user's session? I was playing around
> with the LastUpdated property of the TableDef object but it didn't seem to
> suit my needs.


Hi Jeff,

Sounds messy to me. How about recording each edit to a history table and
give your e-mail recipients access to it? That way only "real" edits get
recorded and all your users need to do is check for changes. I have some
code that will do this if you want it.

Keith.
www.keithwilby.com

 
Reply With Quote
 
Jeff Stroope
Guest
Posts: n/a
 
      25th Jan 2008
Thanks Tom - does a table have an after update event?
--
Thanks,

Jeff


"Tom van Stiphout" wrote:

> On Thu, 24 Jan 2008 16:16:06 -0800, Jeff Stroope
> <(E-Mail Removed)> wrote:
>
> I am assuming that table is updated using some form. In the
> Form_AfterUpdate you can write your code: at that time the edits have
> been committed to the db and it's too late to undo.
>
> -Tom.
>
>
> >Hi - in my database I need to send a notification email if the contents of a
> >particular table have changed. The problem is, sometimes the user changes
> >his mind and undoes his edits. In that case, I don't want to send the email
> >because it will be just a false alarm. Is there an easy way to check a table
> >when the user exits the databse to see if its contents have changed from
> >their values at the beginning of the user's session? I was playing around
> >with the LastUpdated property of the TableDef object but it didn't seem to
> >suit my needs.

>

 
Reply With Quote
 
Jeff Stroope
Guest
Posts: n/a
 
      25th Jan 2008
Thanks Keith - I actually have a history table, but they just want to be
notified and sent a spreadsheet with the changes.
--
Thanks,

Jeff


"Keith Wilby" wrote:

> "Jeff Stroope" <(E-Mail Removed)> wrote in message
> news:976588CB-E1F5-4DC6-AA0C-(E-Mail Removed)...
> > Hi - in my database I need to send a notification email if the contents of
> > a
> > particular table have changed. The problem is, sometimes the user changes
> > his mind and undoes his edits. In that case, I don't want to send the
> > email
> > because it will be just a false alarm. Is there an easy way to check a
> > table
> > when the user exits the databse to see if its contents have changed from
> > their values at the beginning of the user's session? I was playing around
> > with the LastUpdated property of the TableDef object but it didn't seem to
> > suit my needs.

>
> Hi Jeff,
>
> Sounds messy to me. How about recording each edit to a history table and
> give your e-mail recipients access to it? That way only "real" edits get
> recorded and all your users need to do is check for changes. I have some
> code that will do this if you want it.
>
> Keith.
> www.keithwilby.com
>
>

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      25th Jan 2008
No, tables have no events, but then you should never be working directly
with the table.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Jeff Stroope" <(E-Mail Removed)> wrote in message
news:77ECA89B-92F0-45F4-97C1-(E-Mail Removed)...
> Thanks Tom - does a table have an after update event?
> --
> Thanks,
>
> Jeff
>
>
> "Tom van Stiphout" wrote:
>
>> On Thu, 24 Jan 2008 16:16:06 -0800, Jeff Stroope
>> <(E-Mail Removed)> wrote:
>>
>> I am assuming that table is updated using some form. In the
>> Form_AfterUpdate you can write your code: at that time the edits have
>> been committed to the db and it's too late to undo.
>>
>> -Tom.
>>
>>
>> >Hi - in my database I need to send a notification email if the contents
>> >of a
>> >particular table have changed. The problem is, sometimes the user
>> >changes
>> >his mind and undoes his edits. In that case, I don't want to send the
>> >email
>> >because it will be just a false alarm. Is there an easy way to check a
>> >table
>> >when the user exits the databse to see if its contents have changed from
>> >their values at the beginning of the user's session? I was playing
>> >around
>> >with the LastUpdated property of the TableDef object but it didn't seem
>> >to
>> >suit my needs.

>>



 
Reply With Quote
 
Keith Wilby
Guest
Posts: n/a
 
      28th Jan 2008
"Jeff Stroope" <(E-Mail Removed)> wrote in message
news:9B789817-10F2-406E-9926-(E-Mail Removed)...
> Thanks Keith - I actually have a history table, but they just want to be
> notified and sent a spreadsheet with the changes.


Not being funny but that doesn't make sense. How does the user undo edits
in a history table?

Keith.

 
Reply With Quote
 
Jeff Stroope
Guest
Posts: n/a
 
      28th Jan 2008
Good point!
--
Thanks,

Jeff


"Keith Wilby" wrote:

> "Jeff Stroope" <(E-Mail Removed)> wrote in message
> news:9B789817-10F2-406E-9926-(E-Mail Removed)...
> > Thanks Keith - I actually have a history table, but they just want to be
> > notified and sent a spreadsheet with the changes.

>
> Not being funny but that doesn't make sense. How does the user undo edits
> in a history table?
>
> Keith.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to clear range contents when cell contents are changed by us =?Utf-8?B?U3RldmUgRQ==?= Microsoft Excel Programming 12 22nd Feb 2007 09:09 PM
Document format changed upon updating table of contents =?Utf-8?B?a2FtMTQ=?= Microsoft Word Document Management 0 4th Aug 2005 07:46 PM
datagrid contents changed coderazor Microsoft Dot NET Framework Forms 1 31st Jan 2005 01:04 PM
Changed cell contents Mike Donnelly Microsoft Excel Programming 1 14th Mar 2004 06:52 AM
Table cross referenced marked as changed when table contents change. Bruce V. Microsoft Word Document Management 0 5th Nov 2003 08:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 PM.