from an MDB right-click LINK to an ADP

  • Thread starter Thread starter dbahooker
  • Start date Start date
D

dbahooker

hey

i've got an MDB and an ADP.

I want to link to a SQL table.. I've done this 100 times before; it
just somehow doesn't work for this client.

I need to know how to fix this.

open a MDB.

Right-click, Link.. browse to an ADP.. choose the ADP and then link a
table.

i've done this 10000 times before in my life.

Why does it just NOT WORK here for this client?
 
Hello (e-mail address removed),
You wrote in conference
microsoft.public.access.adp.sqlserver,microsoft.public.access on 7 Oct 2005
17:44:46 -0700:

d> hey

yo

d>Right-click, Link.. browse to an ADP.. choose the ADP and
d>then link a table. i've done this 10000 times before in my life.

I doubt it. You can't link a table from ADP to an MDB. Access returns error
message "links can only be created between microsoft access database
files" - and rightfully so, since ADP does not have any talbes in itself.
Link to ODBC-> sql server table.


Vadim
 
I don't recall ever being able to right click, and use link to grab a adp
table.

However, this kind of begs the question, why are you not using a adp here?
(after all, that is all you spend your time hooting about anyway).

Perhaps you are having a brain freeze.

You can use file->get external data..and browse to a adp.....

At that point, you can get a link to the sql tables....

If you don't want to use get->external data, then link to the sql server,
but you have to use the odbc option from the drop down list when you link...
 
vadim yes you can

i swear to god it works for me all the time; and i just found one
machine it's not working on.. it's just pissing me off.

either way. you SHOULD be able to do this.

and im about 90% sure i used to be able to do this; I will test it on
my dozen different machines and let you know the results

and yes.. vadim.. i know that ADP doesnt contain tables lol
 
and i sometimes use MDB for a simple report.. mainly shaping data;
using vba functions.. and then i rewrite them as SQL Udfs.

I won't actually distribute new apps in mdb though.. i mean-- come on--
all the garbage with linked tables and locking problems?

gag me with a spoon
 
and i sometimes use MDB for a simple report.. mainly shaping data;
using vba functions.. and then i rewrite them as SQL Udfs.

I won't actually distribute new apps in mdb though.. i mean-- come on--
all the garbage with linked tables and locking problems?

gag me with a spoon

Horses for courses. In the past few years I've done all-mdb systems, mdb
with ODBC linked tables, and adp. All have advantages/disadvantages (as
discussed ad nauseum in various ng's in the past), it's a question of
choosing the best tool for each particular job.
 
hey

i've got an MDB and an ADP.

I want to link to a SQL table.. I've done this 100 times before; it
just somehow doesn't work for this client.

I need to know how to fix this.

open a MDB.

Right-click, Link.. browse to an ADP.. choose the ADP and then link a
table.

i've done this 10000 times before in my life.

Why does it just NOT WORK here for this client?

According to Microsoft, it isn't possible:

http://support.microsoft.com/default.aspx?scid=kb;en-us;225937

I assume you are using Access 2000. In A2002 and A2003, you can't even
browse to an adp when linking a table.
 
BAZ

THANK YOU-- YOU JUST SAVED ME A TON OF TIME!! I've totally been
working in an Access 2000 environment a LOT recently

I just think that ADPs are much more reliable/scalable solutions than
MDB.. i've just been tired of MDB locking mysteries for the past 10
years.

I mean-- it's like.. Access MDB just doesn't have a decent debugger for
SQL; and from where i'm sitting-- i'm personally tired of running
around and setting up DSNs and linking tables.. I'm tired of all the
extra work to change a SQL passthrough query.

In ADP; you can just run ALTER VIEW sql

there are a LOT of things that I love about MDB. I just wish that more
people took ADP as seriously as I do.



-aaron
 
BAZ

THANK YOU-- YOU JUST SAVED ME A TON OF TIME!! I've totally been
working in an Access 2000 environment a LOT recently

I just think that ADPs are much more reliable/scalable solutions than
MDB.. i've just been tired of MDB locking mysteries for the past 10
years.

I mean-- it's like.. Access MDB just doesn't have a decent debugger for
SQL; and from where i'm sitting-- i'm personally tired of running
around and setting up DSNs and linking tables.. I'm tired of all the
extra work to change a SQL passthrough query.

In ADP; you can just run ALTER VIEW sql

there are a LOT of things that I love about MDB. I just wish that more
people took ADP as seriously as I do.



-aaron

Hi Aaron,

I take adp very seriously. I'm working on one right now (my choice, not
imposed by anyone), it's going very well and I'm very happy with it! Sure,
they have some glitches and foibles, but then so does every flavour of
Access technology. However, without wanting to rehearse yet again the pros
and cons of each approach, I also like to have mdb's and ODBC linked tables
in my kitbag for occasions when their relative merits seem to outweigh their
demerits.

What really annoys me is the impossibility of catching SQL Server errors in
a form's Error event. The solution given in the Microsoft Knowledge Base
(sinking an event on the form's Recordset) doesn't work, because as soon as
you reference a form's Recordset, Access becomes massively unstable and a
crash is just moments away. However, this is no worse than ODBC linked
tabes, where it is equally impossible to get those errors.

It also annoys me that working in adp's more-or-less forces me to use ADO.
Not that it doesn't work just fine (it does), but it seems a bit senseless
to be using this irrelevant nine-day-wonder technology.

Anyway, that's enough griping, glad to be of assistance. Have a nice day!
 
I totally agree about the recorset thing; sounds EXACTLY the way i
remembered it.

I personally haven't ever had to use the form_error event.. never
really had a reason to i guess..

i just do simple bound ADPs and I _LOVE_ them.

And I want to know why people are so anti-adp.

I am so friggin sick and tired of having to copy queries between
frontends.

I dont agree with your BS about ADO. ADO is much better than DAO.. for
uh.. ANYTHING and anything that tells you otherwise is stuck in 1996.

DAO was a 4-year object model and ADO has been like a 7-year object
model.

Anyone using DAO after the release of Office 2000 should be SHOT.
There are better ways to do things.

DAO addnew, update, edit, delete
THESE ARE ALL A WASTE OF TIME. Editing recordsets is for sissys that
dont know how to write SQL.

I just dont understand what in the heck you're talking about.. MDB/ODBC
outweigh ADP?? yeah.. maybe on the suck-meter

I mean-- what in the heck are you talking about.

MDB / ODBC makes things about 100 times more complex; and it's utterly
unusable in my book.

I have MDB/ODBC in my bag--- for DEVELOPMENT; not for production use.

I love Access-- i wouldn't be the 'Sr SQL Developer' that I am today if
it weren't for MDB. And I claim that there are hundreds, thousands,
millions of people that can use ADP in order to learn more about SQL
Server.

And I think that it's the best data entry platform in the world.

I mean--- aren't you TIRED of changing sql passthroughs? Aren't you
tired of half of your code building SQL statements in order to update
Sql passthroughs?

The parameters and sprocs concept is much more powerful in ADP than
anything available in MDB. Do you know how to bind a form to a sproc?


Where if you have a parameter in a form; you can bind that to a form
field??

Just like you can in MDB?

It's the most beautiful thing in the world kid.

aren't you TIRED of having these circa-1996 errors?

MDB are _SHARP_ for a lot of things. But Microsofts' refusal to fix
bugs makes them unusable.

I just think that it's horse shit when people talk smack about ADP
because I dont think that most of these people know WTF they're doing.

-Aaron
 
Hello (e-mail address removed),
You wrote in conference
microsoft.public.access.adp.sqlserver,microsoft.public.access on 8 Oct 2005
18:53:46 -0700:

ak> vadim yes you can

ak> i swear to god it works for me all the time; and i just found one
ak> machine it's not working on.. it's just pissing me off.

ak> either way. you SHOULD be able to do this.

ak> and im about 90% sure i used to be able to do this; I will test it on
ak> my dozen different machines and let you know the results

with a screenshot please! :-)
 
I totally agree about the recorset thing; sounds EXACTLY the way i
remembered it.

I personally haven't ever had to use the form_error event.. never
really had a reason to i guess..

Lemme give you a f'rinstance:

You have a bound form. On the bound form, you have a combo box, which get's
it's row source from a related table. Your user opens the form, starts a
new record, and chooses a value in the combo box. Before he/she saves the
record, some other user deletes the record from the related table (or
changes it's primary key). Result: foreign key constraint violation. How
you gonna trap that? How you gonna give your user a sensible error message
in English? (and don't tell me that you will simply validate the field in
the BeforeUpdate event: there will still remain a "gap" where the related
record can be deleted before the INSERT hits the server).
i just do simple bound ADPs and I _LOVE_ them.

And I want to know why people are so anti-adp.

I am so friggin sick and tired of having to copy queries between
frontends.

I dont agree with your BS about ADO. ADO is much better than DAO.. for
uh.. ANYTHING and anything that tells you otherwise is stuck in 1996.

DAO was a 4-year object model and ADO has been like a 7-year object
model.

Anyone using DAO after the release of Office 2000 should be SHOT.
There are better ways to do things.

DAO addnew, update, edit, delete
THESE ARE ALL A WASTE OF TIME. Editing recordsets is for sissys that
dont know how to write SQL.

Given that you have already made a bit of a fool of yourself elsewhere on
this thread, I don't think you are in a strong position to be accusing other
people of "BS". Also, I must ask, are you incapable of carrying on a
discussion without resorting to juvenile abuse?

Incidentally, and FWIW, if you had read my comments properly, all I said
about ADO in itself was that it works very well. My criticism was for the
fact that Microsoft has made ADO obsolete, and yet we are more-or-less
compelled to use it in ADP's. That isn't a criticism of ADO, it's a
criticism of Microsoft. You may be happy to keep going down the blind alley
of Microsoft's most redundant data access technology, but personally I'd
rather be using something that has a future.
I just dont understand what in the heck you're talking about.. MDB/ODBC
outweigh ADP?? yeah.. maybe on the suck-meter

I'm not going to rehearse all the arguments again, it's been done so often
before. Go and find the discussions on Google - if your mind is not totally
closed, that is. BTW, make sure you pick up all those toys and put them
away first.
I mean-- what in the heck are you talking about.

MDB / ODBC makes things about 100 times more complex; and it's utterly
unusable in my book.

My installed base of happy users proves otherwise.
I have MDB/ODBC in my bag--- for DEVELOPMENT; not for production use.

Fine, suit yourself.
I love Access-- i wouldn't be the 'Sr SQL Developer' that I am today if
it weren't for MDB. And I claim that there are hundreds, thousands,
millions of people that can use ADP in order to learn more about SQL
Server.

Ohhh, a 'Sr SQL Developer'. Well, excuuuuse me! Although I must say that
your general attitude and demeanour mark you out as very much a "Junior".
And I think that it's the best data entry platform in the world.

I mean--- aren't you TIRED of changing sql passthroughs? Aren't you
tired of half of your code building SQL statements in order to update
Sql passthroughs?

The parameters and sprocs concept is much more powerful in ADP than
anything available in MDB. Do you know how to bind a form to a sproc?


Where if you have a parameter in a form; you can bind that to a form
field??

Just like you can in MDB?

Sorry, I feel no need to get into a pissing contest with you.
It's the most beautiful thing in the world kid.

You want to get out a bit more. Go back to the beginning of this thread and
read it again, and then ask yourself if you are in any position to patronise
people.
aren't you TIRED of having these circa-1996 errors?

MDB are _SHARP_ for a lot of things. But Microsofts' refusal to fix
bugs makes them unusable.

New versions of Jet and DAO coming along with Office 12. It's very much
back in development (unlike ADO).

Have you closed your mind so much that you are blind to the fact that ADP's
also suffer from bugs (some of which are unfixed since A2000)?
I just think that it's horse shit when people talk smack about ADP
because I dont think that most of these people know WTF they're doing.

-Aaron

I just think it's very sad when people attach themselves to just one
technology, blind themselves to everything else and start throwing their
toys around when anyone dares point out that there are two sides to
everything.
 
Albert

I dont have to deal with that code; I dont have to make the end users
wait 3 seconds when you open the app

i dont have screwed up locking errors

i dont have to worry about end users leaving their app open
i dont have to worry about copying a new query out to 100 different
desktops every week.
 
a) i dont ever allow people to change PK
b) i dont ever allow any deletes anywhere in any of my databases.

Listen dipshit; I've been at Microsoft most of the past 3 years.. I
have single-handedly developed terabyte datamart solutions; i have
written hundreds, if not thousands of cubes.

There is more to life that running around; waiting for Access to open..
i mean-- how many years do you think that you can ask your end-users to
wait 30 seconds to run a report?

30 seconds is too long and it's never happened to me once on SQL
Server.

it's just like this

when you work in MDB for so long.. you sit around and build queries
until they just plain CRAP OUT. how many times have you gotten some
****ed up error message in Access and you just have to say 'oh; that
query is too complex for MDB' so then you have to rewrite it to use a
temp table

THOSE DAYS ARE OVER AND SQL SERVER ISN'T THAT FLAKY

There are a lot of things that I love about MDB. but i wont ever use
them for end users-- it's just too much of a hassle to sit around and
deal with all that crap

-aaron
 
and I argue that 'ADO isn't Microsofts most redundant Data Access
Technology' it is DAO.

DAO is 10 years out of date; it isn't reliable... it isn't supported.

And I'm not sure I believe you when you say that DAO/Jet is going to be
updated.. but ADO won't.

All that Microsoft needs to do in the next version is to take ADP and
change it to ADO.net-- that is the way that things SHOULD work.

But then again, Microsoft has no understanding of the Access/VB market
and Redmond is run by a bunch of C++/C#/Excel idiots.

I mean-- I've been at Redmond for about 3 years altogether; I've never
met a single blue badge that knows their head from their ass and
they're all Excel dorks.

I just think that it's ****ing funny that you guys think that MDB is
going to make some grand comeback-- but ADP is going to go away.

ADP will be here until the end of time. And when ADP goes away; I'm
not worried-- I've got jobs coming out of my ears-- for $70/hour--
that's my rate.. writing MDB or ASP or SQL or MDX or whatever the heck
my customers want.

I haven't had a week of unemployment since 2001?

Do you know why?

Because I grew into a SQL Server developer-- because I could write
views and sprocs instead of crappy little MDB queries.. and again-- the
thing about ADP is that it lets you write views and sprocs with a
designer component-- it is an excellent tool for writing queries THAT
WORK. Instead of bumbling through and adding a field and having your
queries crap out.

There are a dozen reasons not to use MDB. I personally know that
performance is more important than anything; and I know for a ****ing
fact i can outperform any MDB app you've got.

You want to have a race? You give me your little boner MDB app; i can
rewrite it in ADP in about an hour.. and my reports will run faster
than your stupid MDB (especially when you run your MDB across a
network-- i mean-- come on, are there really limits like that in the
MDB world still lol)

I mean it script-kiddie-- let's have a race; and i'll take your MDB
report that takes 60 seconds to run and I'll have ADP spit it out in 1
or 2 seconds.

Better yet-- I wont have to reboot my file server once a day; i dont
have locking problems-- i won't have to run around copying and pasting
queries (which for sure change more often than anything else in a
database)

having a central repository of queries is the best reason to use ADP.

Analysis Services-- OLAP-- is the 2nd best reason to use ADP. Then you
can please the excel dorks at your company through a couple of
components that are included with office and sql server.. i mean--
there are better technologies out there than sitting around waiting 30
seconds for a report to run in a MDB.

i mean-- things like indexes?? real indexes?

welcome to the 21st century kid; stop playing with crap mdb

-Aaron
 
I don't know if it applies when linking a front-end to SQL Server, but if
you're using an MDB back-end, you can reduce the re-linking time
significantly by opening an unrelated copy of the database...DAO seems to
cache it, and your linking goes much faster. I know it sounds stupid, but
just add this to the beginning of your re-linking code and you'll see...

Dim myDbVar As DAO.Database
Set myDbVar = DBEngine.Workspaces(0).OpenDatabase("backend.mdb", False,
False)

Don't forget to "Set myDbVar = Nothing" once you're done.

Also, you can check to see if the existing link is the same as the link you
would've been creating, and skip it if it is. While we've since moved on to
an ADP/SQL Server setup, back when we were on a front-end/back-end MDB
setup, linking took a fraction of a second in most cases.

But yeah, other methods have their advantages too.

As to copying a query to 100 different desktops...if you have to update that
many (or anything more than about 2 or 3), I think you might want to look
into an automated update procedure of some kind, regardless of what you're
using as a front/back end!

Remember, this isn't a competition...we aren't Mac vs. PC users. <grin>
It's about learning new things, and finding tips & tricks to get the job
done.



Rob
 
i just get off on storing queries in one place; having much smaller
front ends.. not having to copy tables and linked tables and all that
other garbage..

one connection-- it stays open so you have @@spid-- just look cookies
in the ecommerce world

i wish i could share with people some MDB stuff im doing.. i've seen a
LOT of mdb messes over the years-- I'm an Access guy.

I just have this system for automating the execution of queries; right
now it's on the MDB side-- i had it on the sql side back for phillips a
couple of months ago

i just want to know what similiar systems people have-- because i want
to learn-- i'm here to learn

i just wish that more people would take ADP seriously

and i know that we can convince ms to keep it around lol
 
Back
Top