Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Visual Basic 2003 and Later _ Open Access Dbfile

Posted by: access2009eg Jan 11 2020, 12:37 PM

Hello friends;
I want to create application consist only from an icon
when user click this icon open switchform in the protected Access Db
I want to pass the Password to DB and open Swichform
User can't open DB without this icon because its protected
How can I do that

Posted by: theDBguy Jan 11 2020, 01:15 PM

Hi. One approach is to have the "icon" pass an argument to the protected Access DB and then have the protected Access DB check for this argument at startup. If it doesn't exist, then it should quit and not open up.

Posted by: isladogs Jan 11 2020, 01:36 PM

You could consider using the UserControl property to prevent the database being opened directly.
See the example in this link