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    
post Jan 11 2020, 12:37 PM

Posts: 1,172
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

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

UA Moderator
Posts: 77,712
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
post Jan 11 2020, 01:36 PM

UtterAccess VIP
Posts: 2,235
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    30th March 2020 - 12:22 PM