473,399 Members | 2,774 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,399 software developers and data experts.

effeciency of a filter

6
I have a bit of a prob ... I have an access database with a sql server backend. i have a form that was returning about 120,000 records... which was a bad idea.

So i created the record source to be a query that only pulled a subset of the data - about 4000 records. The problem is, now that it is a limited query, I can't seem to insert. I assume this is because its treating it like a View, and i can't insert into it.

Would it help if I used a filter on the form instead? So i return all values but filter to only show the 4000 records... but doesn't that still return all records from sql server and then filter them in the front end of the application? or will access be "smart" enough to know that it should only retrieve 4000 records from sqlserver?

thanks again
sm
Dec 4 '07 #1
2 1130
puppydogbuddy
1,923 Expert 1GB
I have a bit of a prob ... I have an access database with a sql server backend. i have a form that was returning about 120,000 records... which was a bad idea.

So i created the record source to be a query that only pulled a subset of the data - about 4000 records. The problem is, now that it is a limited query, I can't seem to insert. I assume this is because its treating it like a View, and i can't insert into it.

Would it help if I used a filter on the form instead? So i return all values but filter to only show the 4000 records... but doesn't that still return all records from sql server and then filter them in the front end of the application? or will access be "smart" enough to know that it should only retrieve 4000 records from sqlserver?

thanks again
sm
Filtering is not mentioned on the troubleshooter provided by microsoft, so it is hard to tell. I would try the steps included in the troubleshooter provided by Microsoft first.

http://support.microsoft.com/kb/328828

Hope this helps.
Dec 4 '07 #2
puppydogbuddy
1,923 Expert 1GB
I did some checking. The consensus is that filtering via the Access form is not going to help because all of the records would have been loaded by the form's record source SQL before the filter is applied.

Instead, you need to scope down the SQL select statement used as the form's record source in a manner that will not affect your users edit/update capability. Using a where clause instead of joins is one technique used to maintain updateability.

If you need more assistance, please post the SQL statement you used to load the subset of 4,000 records that made the query unupdateable.
Dec 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Robin Cull | last post by:
Imagine I have a dict looking something like this: myDict = {"key 1": , "key 2": , "key 3": , "key 4": } That is, a set of keys which have a variable length list of associated values after...
41
by: David Rasmussen | last post by:
I want to have an unsigned integer-like thing, that for now only allows the bitwise operators. I have defined these operators and their self-assigning cousins. This works, but I would like to...
1
by: Robert Neville | last post by:
I would like to add filter functionality to my database whether through the Main form or the subform. This question may be rudimentary, yet I have not less experience with filtering data outside...
0
by: CSDunn | last post by:
Hello, I have a problem with field filtering between an Access 2000 Project form (the application is called CELDT), and the report that shows the results of the filter. Both the form and the...
3
by: Richard | last post by:
Hi, I have a form based on a table. When I filter the form I want to run a report based on the same table with the same filter as the form. No problem until I want to filter a combo box where...
8
by: dick | last post by:
I am just trying to print/report the results of a "filter by selection" which is done by right-clicking a form, filling in values, and "applying the filter." I have searched the newsgroups, and...
2
by: Salad | last post by:
I have a log file with a list of records. The log file can be unfiltered or filtered. I have a command button to call a data entry form from the log. At first I was only going to present the...
2
by: Mike Sweetman | last post by:
I have a form Form1 which when the Advanced Filter/Sort is used creates a form(maybe) with a title 'Form1Filter1 : Filter'. When I apply the filter to Form1 it is applied, but the value of...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.