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

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Open Access Dbfile, VS2015    
 
   
access2009eg
post Jan 11 2020, 12:37 PM
Post#1



Posts: 1,151
Joined: 19-February 08



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
Thanks

--------------------
I would like to Thank you for your help
Go to the top of the page
 
theDBguy
post Jan 11 2020, 01:15 PM
Post#2


UA Moderator
Posts: 77,339
Joined: 19-June 07
From: SunnySandyEggo


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.

--------------------
Just my 2 cents... "And if I claim to be a wise man, it surely means that I don't know" - Kansas
Access Website | Access Blog | Email
Go to the top of the page
 
isladogs
post Jan 11 2020, 01:36 PM
Post#3


UtterAccess VIP
Posts: 2,109
Joined: 4-June 18
From: Somerset, UK


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

--------------------
Colin (Mendip Data Systems)
Website, email
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    27th January 2020 - 01:10 AM