Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Don't remind me again" function

Status
Not open for further replies.

jack1080

Programmer
Jun 2, 2007
34
MY
I wish to prompt user to backup their access file before perform certain operation. And the prompt has a check box "Don't remind me again", if the user checked, means that next time the warning won't be prompt.

But where is the best place to store the information of this "Don't remind me again"? How to store it?
 
It depends on whether you want the answer to be remembered if the user has closed/reopened the database.

If you don't just store it in a public, boolean variable.

If you do create a table containing two fields - UserID and a Yes/No field to store the answer. When the user closes the form displaying the reminder message update the record associated with the user's login ID.

Ed Metcalfe.

Please do not feed the trolls.....
 
jack1080,
Just to explore the options...

You can also store this information on the users local computer. If you want to do it like Windows does you can store it in the Registry using [tt]SaveSetting()[/tt] / [tt]GetSetting()[/tt]. Another approach would be to use a text file (this would be similar to an [tt]ini[/tt] file or a cookie for IE.)

Hope this helps,
CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
I store information about the application in a table (mine is called 'system'). It's structured:

[tt]table system
sysID AutoNumber, Random
sysGroup Text, 50 chrs
sysItem Text, 50 chrs
sysValue Text, 50 chrs
sysDesc Text, 255 chrs[/tt]

In your case I would store the date of the last backup, something like:
[tt] sysGroup ="Backup"
sysItem ="LastBackup"
sysValue ="7/11/2007"[/tt]
(this value obviously gets updated.)

For your "Don't remind me again", I'd store it as:
[tt] sysGroup ="Backup"
sysItem ="Reminder"
sysValue ="No"[/tt]

You could use these two values to avoid asking the user to backup on a daily basis, but still ask user to backup regardless if the last backup was more than x days ago.

HTH

Max Hugen
Australia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top