473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to Shift-Load application programmatically

Hi All,
Here is my code:

Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.

At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.

Thanks,

-Tom.

Nov 13 '05 #1
4 3538
On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
Hi All,
Here is my code:

Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.

At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.

Thanks,

-Tom.

Hi

http://www.mvps.org/access/api/api0068.htm
appears to address this issue.
-David

Nov 13 '05 #2
"David Schofield" <d.***************@blueyonder.co.uk> wrote in message
news:41b34333.420658805@localhost...
On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
Hi All,
Here is my code:

Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.

At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.

Thanks,

-Tom.

Hi

http://www.mvps.org/access/api/api0068.htm
appears to address this issue.


There's also a somewhat kludgy approach mentioned in
http://support.microsoft.com/?id=210111

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


Nov 13 '05 #3
On Dec 04 2004, 02:42 pm, Tom van Stiphout <no*************@cox.net> wrote
in news:ef********************************@4ax.com:
Hi All,
Here is my code:

Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.

At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.


If you can modify the Autoexec macro itself, you can make it look at the
UserControl property of the application instance and exit early if it's
False, which would be the case when the instance is opened via automation.

--
remove a 9 to reply by email
Nov 13 '05 #4
On 5 Dec 2004 11:23:04 -0600, d.***************@blueyonder.co.uk
(David Schofield) wrote:

Thanks. I should have known The Access Web would have the answer.
-Tom.

On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
Hi All,
Here is my code:

Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.

At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.

Thanks,

-Tom.

Hi

http://www.mvps.org/access/api/api0068.htm
appears to address this issue.
-David


Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Glen Able | last post by:
Just to get my head straight on this... Firstly, am I right in thinking that right-shifting a signed integer has an undefined result (i.e. could be implemented as a logical or arithmetic shift)?...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
43
by: Mehta Shailendrakumar | last post by:
Hello, Can anyone suggest me operator to perform arithmetic shift in C? May it be for a perticular compiler. Thank you in advance. Regards, Shailendra
10
by: Tim Frawley | last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back navigation on a control that doesn't support this method. Does anyone have any ideas how to compare e.KeyChar to a ShiftTab? ...
7
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my...
9
by: deepak | last post by:
If i'm shifting an integer 'n' times where n > sizeof(int), It's giving the same value as that of n-sizeof(n). Why is it behaving like this. I studied that the bit 'll be replaced by '0'. ...
2
by: sytemper | last post by:
I write a keydown KeyDown event to catch if tab is press or tab+shift is press.And i already override the IsInputKey method. But noe i only can get the tab but no shift+tab. When shift+tab is...
4
by: sandhya | last post by:
Hello Folks, i hava a problem in coding of circular left shift of 25 bits in my program...how do i perform it, and how do i use unsigned in VB. My program (IDEA algorithm implementation in VB) ...
3
by: Amy Smith | last post by:
Hello there, I am having a small problem which been challenging me for few days and need help or advice. I am trying to calculate the day-shift for employees based on the time they started and...
4
by: Felix Kater | last post by:
Hi, when I use something like int Shift= 3; long Value= 1 << Shift; What is the data type of the const value '1' here? In other terms: What is the possible maximum of 'Shift' here?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.