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

Problem witth Combo Box To View from Linked Server Database

I have an Access application linked to a SQL Server 2000 database
using ODBC. Call this database/server pair DB1

Part of the app needs to link to another local 2000 server to get data
from another application database. Call it DB2

I have made a view in DB1 that brings in the data from DB2. I then
link the view to the Access app. I have created a linked server login
between the two DBs (call it appuser) so calls to the view can get the
data.

I can open the view from Access and see all the data. I can also
create a query and see all the data. However when I create a combo
box in my application and try to click on it, I get the following
error message:

----
ODBC Call Failed

[Microsoft][ODBC SQL Server Driver][SQL Server]Access to the remote
server is denied because no login-mapping exists (#7416)
----

What am I missing?
Nov 12 '05 #1
3 1964
If I understand you correctly, you created a linked server in Sql Server
to link DB2 to DB1 and created a view in DB1 which references data from
DB2 and are linking to this view in DB1 from Access. If this is the
case, then how about just creating the view directly in DB2? If you
need to push data to DB2 from DB1, use stored procedures which you can
manipulate from Access. I always avoid linking to something that is
already linked. Always try to link directly to the source.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #2
I see your point, but it still doesn't explain the behavior.

More info that I have come up with.

If I create an identical combo box on the form, I have the same
problem. However if I create a new form and create a new combo box
with the same datasource, I do not get the problem.

Is the form corrupted or something?

Thanks
Nov 12 '05 #3
OK I was able to get this to work.

I pulled an older copy of the Access app and connected the views again
and created the combo box and it worked.

I am still not sure what the problem was.
Nov 12 '05 #4

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

Similar topics

20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
3
by: J. Thompson | last post by:
I have an Access application linked to a SQL Server 2000 database using ODBC. Call this database/server pair DB1 Part of the app needs to link to another local 2000 server to get data from...
23
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.