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
> Help With Opening In Accdr Only, Access 2016    
 
   
mylton
post Jul 22 2019, 10:16 AM
Post#1



Posts: 50
Joined: 13-June 16




help with opening in accdr only

Good Morning.
First of all, I apologize for English. it's not very good.
where can I find an example or an encoding in VBA access so the software will only open if it's in accdr?
otherwise it gives a message stating this need and closes the application

Thank you
Go to the top of the page
 
theDBguy
post Jul 22 2019, 10:23 AM
Post#2


Access Wiki and Forums Moderator
Posts: 76,389
Joined: 19-June 07
From: SunnySandyEggo


Hi. I use something like this:
CODE
If Not SysCmd(acSysCmdRuntime) Then
    MsgBox "Sorry, try again."
    Application.Quit
End If

--------------------
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
 
mylton
post Jul 22 2019, 10:43 AM
Post#3



Posts: 50
Joined: 13-June 16




OK.
I put this routine in the initial form?
Go to the top of the page
 
theDBguy
post Jul 22 2019, 10:50 AM
Post#4


Access Wiki and Forums Moderator
Posts: 76,389
Joined: 19-June 07
From: SunnySandyEggo


Sure. Try it and let us know what happens. You should put it so it will run first before anything else.

--------------------
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
 
mylton
post Jul 22 2019, 11:03 AM
Post#5



Posts: 50
Joined: 13-June 16



ok.
estou no trabalho.
teclando pelo celular.
quando chegar a noite.
testo e aviso.
obrigado.
Go to the top of the page
 
theDBguy
post Jul 22 2019, 11:07 AM
Post#6


Access Wiki and Forums Moderator
Posts: 76,389
Joined: 19-June 07
From: SunnySandyEggo


De nada. Boa sorte!

--------------------
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
 


Custom Search


RSSSearch   Top   Lo-Fi    18th October 2019 - 06:03 AM