A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Making a record of a CommandButtonClick



 
 
Thread Tools Display Modes
  #1  
Old February 18th, 2006, 05:04 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Making a record of a CommandButtonClick

Hi!
I managed to make a button that makes a copy from the database and saves it
somewhere else. Now I'm wondering is there a way to keep track of then it
was last saved....
It overwrites the excisting copy, so there is only one copy at the time...
Any help?

elli


  #2  
Old February 18th, 2006, 06:34 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Making a record of a CommandButtonClick

On Sat, 18 Feb 2006 19:04:58 +0200, elli wrote:

Hi!
I managed to make a button that makes a copy from the database and saves it
somewhere else. Now I'm wondering is there a way to keep track of then it
was last saved....
It overwrites the excisting copy, so there is only one copy at the time...
Any help?

elli


If you just want to know the date when the last time the database was
saved, add a table to your database. Add one field:
[LastSaved] DateTime
Name the table tblSavedDate

Code the command button on the form that saves the database (after the
code that actually saves the database runs):

currentDb.Execute "Update tblSavedDate set tblSavedDate =
Date();",dbFailOnError

Add error handling so that you do not update the table unless the
database was successfully saved.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old February 18th, 2006, 07:07 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Making a record of a CommandButtonClick

Thank U very many)

-e-


"fredg" kirjoitti
et...
On Sat, 18 Feb 2006 19:04:58 +0200, elli wrote:

Hi!
I managed to make a button that makes a copy from the database and saves
it
somewhere else. Now I'm wondering is there a way to keep track of then it
was last saved....
It overwrites the excisting copy, so there is only one copy at the
time...
Any help?

elli


If you just want to know the date when the last time the database was
saved, add a table to your database. Add one field:
[LastSaved] DateTime
Name the table tblSavedDate

Code the command button on the form that saves the database (after the
code that actually saves the database runs):

currentDb.Execute "Update tblSavedDate set tblSavedDate =
Date();",dbFailOnError

Add error handling so that you do not update the table unless the
database was successfully saved.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail



 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Next Record If", Mail Merge Issues [email protected] Mailmerge 8 February 8th, 2006 07:11 PM
User Saving a Record else it deletes Carter Wexler Using Forms 1 August 2nd, 2005 11:57 PM
Creating Records in tables automatically peterg290935 Using Forms 8 June 22nd, 2005 08:12 AM
Access Mail Merge to Word.doc files ? RNUSZ@OKDPS Setting Up & Running Reports 1 May 18th, 2005 06:31 PM
strategy for data entry in multiple tables LAF Using Forms 18 April 25th, 2005 04:04 AM


All times are GMT +1. The time now is 11:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.