A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filter on query of linked tables



 
 
Thread Tools Display Modes
  #1  
Old January 6th, 2005, 10:27 PM
Sunny
external usenet poster
 
Posts: n/a
Default Filter on query of linked tables

I am using linked tables in my application. My tables are stored on SQL
server and linked into my application through ODBC connection. I have
created one query(myQuery) on my linked tables.

On one form I have listbox and I use the following code:

lstClients.RowSource = "Select * From MyQuery WHERE myCondition"

This gives me very slow response.

Question is, This statement pulls all the data from SQL server and then
filters or it pulls the final result?

Thanks.


  #2  
Old January 7th, 2005, 12:45 PM
Brian
external usenet poster
 
Posts: n/a
Default

"Sunny" wrote in message
...
I am using linked tables in my application. My tables are stored on SQL
server and linked into my application through ODBC connection. I have
created one query(myQuery) on my linked tables.

On one form I have listbox and I use the following code:

lstClients.RowSource = "Select * From MyQuery WHERE myCondition"

This gives me very slow response.

Question is, This statement pulls all the data from SQL server and then
filters or it pulls the final result?

Thanks.



Impossible to say from this information. Use the SQL Profiler to see what
SQL is actually arriving at the server. Check that the columns relevant to
myCondition are properly indexed.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex Query (was: Refresh vs. requery vs. Remove Filter in FormsCoding NG) rgrantz Running & Setting Up Queries 1 November 23rd, 2004 01:59 AM
Unmatched Query Mess Natalia Running & Setting Up Queries 8 October 28th, 2004 02:36 PM
Big number gives error! Sara Mellen Running & Setting Up Queries 8 October 11th, 2004 02:48 AM
Delete Query Shanin Running & Setting Up Queries 14 July 31st, 2004 07:15 PM
Union query with filter - different results on different computers Nick General Discussion 4 July 18th, 2004 05:20 AM


All times are GMT +1. The time now is 03:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.