473,378 Members | 1,416 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,378 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 1961
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.