UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> record count is null    
 
   
kimberly257
post Nov 16 2005, 12:24 AM
Post #1

New Member
Posts: 1



I am trying to manually secure my database. I have 6 groups that each require access to different forms & objects in the database.

I created a Password table that contains Username, Password, Group.
I created a Password form that requests the Username & Password
I pass the Username & Password to a parameter query.
If the query returns no results, the Username & Password are not valid
If the query returns results, I would like to open the database based on my defined group levels.

The problem: After I run the query, I don't know what to do with the results. What I want to say is:

If query result is Null, display the message that it is not a valid username/password.
If query result Is Not Null (the password is valid) -- open the database with Form A, Form B, Report D enabled.

But, since a Query cannot have a value property, like Null, I'm at a loss. I believe I can do something with a record count, but the only examples I have been able to find refer to opening database connections and "Dim"ing recordsets, and I'm not quite sure how to do that in my VB code.

I'd appreciate any help that can be provided. Thank you.
Go to the top of the page
 
+
HiTechCoach
post Nov 16 2005, 02:18 AM
Post #2

UtterAccess VIP
Posts: 18,396
From: Oklahoma City, Oklahoma



Welcome to UA!

There are lots of great code examples in the code archive.

Check out this Security Demo

Hope this helps...
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 04:30 AM