Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 12th, 2006, 12:31 PM
Authorized User
 
Join Date: Jan 2006
Location: lagos, lagos, Nigeria.
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default password/user functions

i want to create a password or/and user name that is a function and not a string.
e.g a password that is a function of the system date on the computer that my access application is running on,when originally loaded on a system.
  how can i do this.
  Also i want to create a procedure that will server has the timer of an access apllication,so that after a specific number of days,e.g 30 days,the application stops function,this is basically for demo versions of an access apllication.

  #2 (permalink)  
Old January 12th, 2006, 04:27 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure what you want for the first item. Can you explain more?

The second item you can do by writing a registry key value that calculates the last day of the demo. Then check that key each time the app is started. If the Current System Date() is greater than the registry date, then Application.Quit.

HTH

mmcdonal
  #3 (permalink)  
Old January 13th, 2006, 08:24 AM
Authorized User
 
Join Date: Jan 2006
Location: lagos, lagos, Nigeria.
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THANKS,I WILL TRY IT OUT.
FOR THE 1ST QUESTION,MOST PASSWORDS ARE STRINGS,I WANT TO CREATE A PASSWORD THAT IS A FUNCTION.E.G AN APPLICATION THAT USES THE CURRENT SYSTEM DATE WHEN EVER ITS OPENED AS THE PASSWORD,THANKS.

  #4 (permalink)  
Old January 13th, 2006, 08:49 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

For the second item, you can just set the password by using the Date() function. I'm just curious as to why you want to do that. Is this also for the trial version? "The password is today's date." Having a password automatically changing daily can be dangerous, especially if it's not documented somewhere clearly as to what it is.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division


Similar Threads
Thread Thread Starter Forum Replies Last Post
User-defined functions fredh Excel VBA 1 May 7th, 2007 10:28 AM
Portability of User Defined Functions (UDFs) fredh Excel VBA 0 May 3rd, 2007 06:07 PM
Number format in User Defined Functions Moose35 Excel VBA 1 February 17th, 2005 05:23 AM
User-Defined Functions - How to recalculate? kmoran Excel VBA 1 October 5th, 2004 02:45 AM
user defined functions in vba re_anu Access VBA 2 March 3rd, 2004 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.