PC Review


Reply
Thread Tools Rate Thread

Design view (select query with link table issues)

 
 
=?Utf-8?B?S2lt?=
Guest
Posts: n/a
 
      8th Sep 2005
When creating a query, using the simple query wizard the linking of all
tables are done correctly. However, when designing an existing query the
tables that I add are not automatically linked. The database is split (all
forms, queries, reports are in one database and all the tables live in the
other). As far as I can see the relationships look good. I've tried resaving
the relationships (no changes made) and used the repair option. There are
many users with their own "front end" copy, pointing to the shared "backend".
Not all users are having this problem. I am at a loss as to how to correct
the issue. Any help would be most appreciated. Thank you in advance.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      8th Sep 2005
Kim, you are talking about a query that draws from tables that are not
linked, so presumably you mean this kind of thing:
SELECT * FROM Employees IN '\\Server1\MyPath\Northwind2003.mdb';

If that works for some users and not others, you are trying to trace what is
different about the machines where it does not work.

The issue could have to do with permissions to use the data--either Access
permissions, Windows user permissions, or file-share permissions. It could
also have to do with the names used, e.g. you connnect to a database on
drive P:, but a user does not currently have a drive P: defined.

If none of those ideas work, it is possible that some users need to update
their JET 4 service pack. Track down msjet40.dll, typically in
windows\system32. Right-click and choose Properties. On the Version tab, you
should see the 8 in 4.0.8xxx.0. If not, down load and install SP8 for JET 4
on those machines, from:
http://support.microsoft.com/gp/sp

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Kim" <(E-Mail Removed)> wrote in message
news3826FF8-50E9-475C-8F98-(E-Mail Removed)...
> When creating a query, using the simple query wizard the linking of all
> tables are done correctly. However, when designing an existing query the
> tables that I add are not automatically linked. The database is split (all
> forms, queries, reports are in one database and all the tables live in the
> other). As far as I can see the relationships look good. I've tried
> resaving
> the relationships (no changes made) and used the repair option. There are
> many users with their own "front end" copy, pointing to the shared
> "backend".
> Not all users are having this problem. I am at a loss as to how to correct
> the issue. Any help would be most appreciated. Thank you in advance.



 
Reply With Quote
 
=?Utf-8?B?S2lt?=
Guest
Posts: n/a
 
      10th Sep 2005
Hi Allen,

The tables are linked tables, and link properly when using the wizard. My
problem is when modifying an existing query, trying to add a known "linked"
table the link doesn't happen automatically for all users. As a test I
removed the table from the relationship view, added it back, created the
link, and saved the relationship. After doing so the links were properly
added while in design view.

What could have caused the problem? Throughout my tests I used a user that
had full admin rights and the drive mappings/shares were fine. I did not
check the file, but will if you think that is the root cause. Thanks.

"Allen Browne" wrote:

> Kim, you are talking about a query that draws from tables that are not
> linked, so presumably you mean this kind of thing:
> SELECT * FROM Employees IN '\\Server1\MyPath\Northwind2003.mdb';
>
> If that works for some users and not others, you are trying to trace what is
> different about the machines where it does not work.
>
> The issue could have to do with permissions to use the data--either Access
> permissions, Windows user permissions, or file-share permissions. It could
> also have to do with the names used, e.g. you connnect to a database on
> drive P:, but a user does not currently have a drive P: defined.
>
> If none of those ideas work, it is possible that some users need to update
> their JET 4 service pack. Track down msjet40.dll, typically in
> windows\system32. Right-click and choose Properties. On the Version tab, you
> should see the 8 in 4.0.8xxx.0. If not, down load and install SP8 for JET 4
> on those machines, from:
> http://support.microsoft.com/gp/sp
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Kim" <(E-Mail Removed)> wrote in message
> news3826FF8-50E9-475C-8F98-(E-Mail Removed)...
> > When creating a query, using the simple query wizard the linking of all
> > tables are done correctly. However, when designing an existing query the
> > tables that I add are not automatically linked. The database is split (all
> > forms, queries, reports are in one database and all the tables live in the
> > other). As far as I can see the relationships look good. I've tried
> > resaving
> > the relationships (no changes made) and used the repair option. There are
> > many users with their own "front end" copy, pointing to the shared
> > "backend".
> > Not all users are having this problem. I am at a loss as to how to correct
> > the issue. Any help would be most appreciated. Thank you in advance.

>
>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      10th Sep 2005
So these are linked tables, but they do not work on some user's machines?

Presumably you have copied the mdb file from one machine to others, and if
you try to open the table directly in the database window, you get some kind
of error message? And if you relink the tables, they work?

If that is the case, you will need to run some code on startup to check that
the links work correctly. Solutions.mdb (sample database) has an example of
how to check links, and if not found pop up the File Open dialog so the user
can select where the back end file has gone. You should be able to download
the sample from:
http://msdn.microsoft.com/library/of...dbdownload.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Kim" <(E-Mail Removed)> wrote in message
news:48CDB7E1-3166-4542-8990-(E-Mail Removed)...
>
> The tables are linked tables, and link properly when using the wizard. My
> problem is when modifying an existing query, trying to add a known
> "linked"
> table the link doesn't happen automatically for all users. As a test I
> removed the table from the relationship view, added it back, created the
> link, and saved the relationship. After doing so the links were properly
> added while in design view.
>
> What could have caused the problem? Throughout my tests I used a user that
> had full admin rights and the drive mappings/shares were fine. I did not
> check the file, but will if you think that is the root cause. Thanks.
>
> "Allen Browne" wrote:
>
>> Kim, you are talking about a query that draws from tables that are not
>> linked, so presumably you mean this kind of thing:
>> SELECT * FROM Employees IN '\\Server1\MyPath\Northwind2003.mdb';
>>
>> If that works for some users and not others, you are trying to trace what
>> is
>> different about the machines where it does not work.
>>
>> The issue could have to do with permissions to use the data--either
>> Access
>> permissions, Windows user permissions, or file-share permissions. It
>> could
>> also have to do with the names used, e.g. you connnect to a database on
>> drive P:, but a user does not currently have a drive P: defined.
>>
>> If none of those ideas work, it is possible that some users need to
>> update
>> their JET 4 service pack. Track down msjet40.dll, typically in
>> windows\system32. Right-click and choose Properties. On the Version tab,
>> you
>> should see the 8 in 4.0.8xxx.0. If not, down load and install SP8 for JET
>> 4
>> on those machines, from:
>> http://support.microsoft.com/gp/sp
>>
>> "Kim" <(E-Mail Removed)> wrote in message
>> news3826FF8-50E9-475C-8F98-(E-Mail Removed)...
>> > When creating a query, using the simple query wizard the linking of all
>> > tables are done correctly. However, when designing an existing query
>> > the
>> > tables that I add are not automatically linked. The database is split
>> > (all
>> > forms, queries, reports are in one database and all the tables live in
>> > the
>> > other). As far as I can see the relationships look good. I've tried
>> > resaving
>> > the relationships (no changes made) and used the repair option. There
>> > are
>> > many users with their own "front end" copy, pointing to the shared
>> > "backend".
>> > Not all users are having this problem. I am at a loss as to how to
>> > correct
>> > the issue. Any help would be most appreciated. Thank you in advance.



 
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
Make table query only runs from design view. kagard Microsoft Access 3 24th Jun 2011 03:35 PM
Design View Query - NOT IN another table JE Microsoft Access 5 12th Oct 2009 05:15 PM
All Table fields in Query Design View Filo Microsoft Access 3 1st Jul 2008 02:31 AM
Query Design View - multi table query problems =?Utf-8?B?QnJhbmRvbiBKb2huc29u?= Microsoft Access Queries 2 23rd Sep 2006 10:55 PM
Query disappears after adding table to design view Darrin Ezell Microsoft Access Queries 10 27th Feb 2006 04:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 AM.