Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Registration Seminar 1 Problem
Colin M 

10 years ago
Richard:
I am creating a registration form for my new app, and have a small problem.  I am using a Navigation form as my startup form, and the on OPEN event VBA code as below.  I am not getting an error message, and the message box says that the app is registered, however when I restart the database it says that the database is not registered.  When I look in the Registry it appears that the database is registered.  Here is the VBA code.  Can you tell me what I am missing?  Thanks.

Private Sub Form_Open(Cancel As Integer)
    Dim S As String
    Dim Key1 As Long, Key2 As Long, L As Long
    Key1 = Int(Rnd() * 1000000) + 1000000  '1000000 - 2000000
    Key2 = Int(Key1 * 3 / 2) + 23331
    S = InputBox("Your Database Is Not Registered!  Call customer service at (830) 214-5436 to get   your password.  Your KEY is:   " & Key1)
    If S = "" Or IsNull(S) Then
        L = 0
    Else
        L = CLng(S)
    End If
    If L = Key2 Then
        SaveSetting "MSWinRegSet32", "Section1", "IsReg", "TRUE"
        MsgBox "Your database is now registered. Enjoy."
    Else
        MsgBox "Password is INCORRECT. Please call (830) 214-5436 for support."
        Quit
    End If
End Sub



Reply from Alex Hedley:

Where are you checking the reg key?

There should be a GetSetting(...) to check the Reg Key.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/11/2026 5:17:42 PM. PLT: 1s