PC Review


Reply
Thread Tools Rate Thread

Access 2007 Connection Fails at Startup

 
 
Alan Z. Scharf
Guest
Posts: n/a
 
      12th Jul 2008
Hi,

When I open an Access 2007 Enterprise ADP, the connection fails.

However, if I then go to Office Button, Servers, Connection and press OK,
the ADP connects.

This happens both in the office, and also on my home system running in
Virtual PC.

My SQL Server Management Studio opens on normally on first try, so there is
nothing really wrong in general witth connecting to SQLServer.

Is there some setting I'm missing?

Thanks.


Alan


 
Reply With Quote
 
 
 
 
Alan Z. Scharf
Guest
Posts: n/a
 
      12th Jul 2008
FOLLOWUP:

My application on startup is using

'Application.CurrentProject.OpenConnection strConnect'to connect at startup.

This app has been starting up with my connection code for several years in
Access 2003 with no problem.

Alan

"Alan Z. Scharf" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> When I open an Access 2007 Enterprise ADP, the connection fails.
>
> However, if I then go to Office Button, Servers, Connection and press OK,
> the ADP connects.
>
> This happens both in the office, and also on my home system running in
> Virtual PC.
>
> My SQL Server Management Studio opens on normally on first try, so there
> is nothing really wrong in general witth connecting to SQLServer.
>
> Is there some setting I'm missing?
>
> Thanks.
>
>
> Alan
>



 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      13th Jul 2008
Obviously, you have some piece of code who is setting the value of
strConnect to a (valid?) connection string on startup and this piece of code
doesn't work properly under ADP 2007.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"Alan Z. Scharf" <(E-Mail Removed)> wrote in message
news:eU%(E-Mail Removed)...
> FOLLOWUP:
>
> My application on startup is using
>
> 'Application.CurrentProject.OpenConnection strConnect'to connect at
> startup.
>
> This app has been starting up with my connection code for several years in
> Access 2003 with no problem.
>
> Alan
>
> "Alan Z. Scharf" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> When I open an Access 2007 Enterprise ADP, the connection fails.
>>
>> However, if I then go to Office Button, Servers, Connection and press OK,
>> the ADP connects.
>>
>> This happens both in the office, and also on my home system running in
>> Virtual PC.
>>
>> My SQL Server Management Studio opens on normally on first try, so there
>> is nothing really wrong in general witth connecting to SQLServer.
>>
>> Is there some setting I'm missing?
>>
>> Thanks.
>>
>>
>> Alan
>>

>
>



 
Reply With Quote
 
Alan Z. Scharf
Guest
Posts: n/a
 
      13th Jul 2008
Sylvain,

Yes, that states the problem well.

Then the question is why wouldn't it work the same in Access 2007.

Particularly since it is code from MSKB on changing cnnection
programmatically.

http://support.microsoft.com/kb/306881

Alan


"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:(E-Mail Removed)...
> Obviously, you have some piece of code who is setting the value of
> strConnect to a (valid?) connection string on startup and this piece of
> code doesn't work properly under ADP 2007.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
> E-mail: sylvain aei ca (fill the blanks, no spam please)
>
>
> "Alan Z. Scharf" <(E-Mail Removed)> wrote in message
> news:eU%(E-Mail Removed)...
>> FOLLOWUP:
>>
>> My application on startup is using
>>
>> 'Application.CurrentProject.OpenConnection strConnect'to connect at
>> startup.
>>
>> This app has been starting up with my connection code for several years
>> in Access 2003 with no problem.
>>
>> Alan
>>
>> "Alan Z. Scharf" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi,
>>>
>>> When I open an Access 2007 Enterprise ADP, the connection fails.
>>>
>>> However, if I then go to Office Button, Servers, Connection and press
>>> OK, the ADP connects.
>>>
>>> This happens both in the office, and also on my home system running in
>>> Virtual PC.
>>>
>>> My SQL Server Management Studio opens on normally on first try, so there
>>> is nothing really wrong in general witth connecting to SQLServer.
>>>
>>> Is there some setting I'm missing?
>>>
>>> Thanks.
>>>
>>>
>>> Alan
>>>

>>
>>

>
>



 
Reply With Quote
 
bcap
Guest
Posts: n/a
 
      13th Jul 2008
It might help if you posted (i) your connection string and (ii) the exact
error number/message that you get.

"Alan Z. Scharf" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sylvain,
>
> Yes, that states the problem well.
>
> Then the question is why wouldn't it work the same in Access 2007.
>
> Particularly since it is code from MSKB on changing cnnection
> programmatically.
>
> http://support.microsoft.com/kb/306881
>
> Alan
>
>
> "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
> wrote in message news:(E-Mail Removed)...
>> Obviously, you have some piece of code who is setting the value of
>> strConnect to a (valid?) connection string on startup and this piece of
>> code doesn't work properly under ADP 2007.
>>
>> --
>> Sylvain Lafontaine, ing.
>> MVP - Technologies Virtual-PC
>> E-mail: sylvain aei ca (fill the blanks, no spam please)
>>
>>
>> "Alan Z. Scharf" <(E-Mail Removed)> wrote in message
>> news:eU%(E-Mail Removed)...
>>> FOLLOWUP:
>>>
>>> My application on startup is using
>>>
>>> 'Application.CurrentProject.OpenConnection strConnect'to connect at
>>> startup.
>>>
>>> This app has been starting up with my connection code for several years
>>> in Access 2003 with no problem.
>>>
>>> Alan
>>>
>>> "Alan Z. Scharf" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi,
>>>>
>>>> When I open an Access 2007 Enterprise ADP, the connection fails.
>>>>
>>>> However, if I then go to Office Button, Servers, Connection and press
>>>> OK, the ADP connects.
>>>>
>>>> This happens both in the office, and also on my home system running in
>>>> Virtual PC.
>>>>
>>>> My SQL Server Management Studio opens on normally on first try, so
>>>> there is nothing really wrong in general witth connecting to
>>>> SQLServer.
>>>>
>>>> Is there some setting I'm missing?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>> Alan
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
a a r o n . k e m p f @ g m a i l . c o m
Guest
Posts: n/a
 
      14th Jul 2008
I'd look at the NorthWindCS.adp and make sure that you're doing it the
exact same way that they do.

I've never had to do anything like this; because I just set the
connection string and then keep people away from the option to change
it.

-aaron





On Jul 12, 3:04*pm, "Alan Z. Scharf" <asch...@grapevines.com> wrote:
> Hi,
>
> When I open an Access 2007 *Enterprise ADP, the connection fails.
>
> However, if I then go to Office Button, Servers, Connection and press OK,
> the ADP connects.
>
> This happens both in the office, and also on my home system running in
> Virtual PC.
>
> My SQL Server Management Studio opens on normally on first try, so there is
> nothing really wrong *in general witth connecting to SQLServer.
>
> Is there some setting I'm missing?
>
> Thanks.
>
> Alan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
querytable connection fails in Excel 2007 kk45 Microsoft Excel Programming 0 19th Mar 2008 03:41 PM
Access 2003 startup form fails to open c Microsoft Access 0 28th Jun 2007 03:00 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
Access XP runtime startup silently fails Luke Bellamy Microsoft Access 1 6th Jul 2006 04:05 AM
connection to access file fails fanor Microsoft ADO .NET 2 12th Jun 2006 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 PM.