473,385 Members | 1,848 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,385 software developers and data experts.

Error Message on Connection Failure

I have an Excel workbook with eight data connections to various SQL Server data sources, most of them stored procedures that return tables of data. The connections are set to refresh either when the workbook is opened or automatically when the contents of the cells that contain the SP parameters change.

Right now, if someone lacks the security access to view the data, the procedures come back empty and the user doesn't see any data. I've been asked to add processing that will give the user an explicit error message via MsgBox alerting them that their security access is insufficient. However, I can't seem to find any place in Excel where such processing can be implemented.

Has anyone else successfully accomplished this?
Apr 4 '14 #1
1 1595
anvidc
28
Hi, try using Environ("Username") to get the username on workbook open even.. maybe create a user table list to lookup..
Apr 14 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ao | last post by:
I had PHP installed on as CGI on a Window 2000 Server and connected to an MSSQL 2000 on another server. Both server were upgraded to Windows Server 2003 and problems developed that I could no...
0
by: Lenny D | last post by:
If anybody has any experience SF.net's mySQL server, your help would be greatly appreciated. When I try to connect to the DB install Movable Type (http://www.movabletype.org/) I get the following...
1
by: lauren quantrell | last post by:
Admitedly a very open-ended question but here goes ... Why so may "Connection failure" error messages when my Access 2K users are executing stored procedures that contain UPDATE or INSERT...
1
by: Ranjan as usual | last post by:
Dear folks I wrote a small snippet in VB .NET to connect to the exchange store, the code is below, however I get the following error message. Any solutions , or pointers would be appreciated. My...
0
by: John Pawlicki | last post by:
I did a new install of SuSE 9.1 and had SuSE do the install via it's rpm packages install postgresql 7.4.2. I did a pg_dump prior to this and a restore after the new install. The database is fine....
7
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer"...
6
by: alex.hatzisavas | last post by:
Hi all. I'm having a serious problem when i'm trying to use the CurrentProject.Connection property for some ADO manipulation. Here's the error message i'm getting: Run-time error...
1
by: Jeremy Kitchen | last post by:
I get the following error Message when I attempt to create a new instance of my webservice. BindingFailure was detected Message: The assembly with display name...
3
by: pvrsatya | last post by:
hi all i am using TCP/Ip i am running server application in one PC client application in other PC i am connecting these thro PC's in LAN If i remove the LAN cable
3
by: dancer | last post by:
I am using Framework 1.1.4322. Who can tell me why I'm getting this error? My code follows Compilation Error Description: An error occurred during the compilation of a resource required to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.