473,408 Members | 1,747 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,408 software developers and data experts.

How to se filter or recordsource

I populate many of my MS Access forms with only one record from a single table. Is it faster/better to use a SQL statement (with appropriate WHERE statement) applied directly to the recordsource or point the recordsource to the appropriate table and set the filter each time the form opens? Does the version (2003 vs. 2007) or the use of a SQL back-end make a difference?
May 13 '10 #1

✓ answered by NeoPa

I don't believe there is ever much of a performance difference between the two approaches. I'd always recommend the full table with a filter though, for flexibility as well as ease of maintenance.

Welcome to Bytes!

6 2402
NeoPa
32,556 Expert Mod 16PB
I don't believe there is ever much of a performance difference between the two approaches. I'd always recommend the full table with a filter though, for flexibility as well as ease of maintenance.

Welcome to Bytes!
May 14 '10 #2
Thanks; I was under the impression that the recordsource approach would be processed by the server and the filter would be processed by the client? Hence, the former approach would limit network traffic??
May 14 '10 #3
Jim Doherty
897 Expert 512MB
@johnhawk
How many times do we see
"Select * from the largest table in the universe" across the network and filter it when it gets to the client
as opposed to
"Select only the columns you need and the number of rows that you can define as needing from the largest table in the universe where my criteria equals an indexed column"

For the most part with small stuff you don't notice much difference :)
May 14 '10 #4
@johnhawk
Thanks for the quick reply.
May 14 '10 #5
NeoPa
32,556 Expert Mod 16PB
johnhawk: Thanks; I was under the impression that the recordsource approach would be processed by the server and the filter would be processed by the client? Hence, the former approach would limit network traffic??
Just to be clear - that is not what is going on here with filtered forms. It's all handled by the SQL engine.
May 14 '10 #6
@NeoPa
Thanks, again. Makes sense.
May 14 '10 #7

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

Similar topics

1
by: James Fortune | last post by:
In order to get the records I want on a report I sometimes create a SQL string for the RecordSource and sometimes supply the criteria using the Filter Property. If I use the Filter Property rather...
2
by: Gerry Abbott | last post by:
Hi all. Im using a form's recordsource for a report. which works fine Me.RecordSource = Forms("frmdate01").Form.Controls("HoldLog").Form.Controls("frmHoldLog01").Form.RecordSource Ive got a...
2
by: EJO | last post by:
Using a tab control, I am setting the recordsource value of a form using the following code (both the form filter property and the subform link child/master fields are not used): ...
3
by: Stewart | last post by:
Hi all! My (relatively small) database holds data on staff members and the projects (services) that they are assigned to. In my form frmStaff, I have a list of staff members - it is a...
9
by: robert d via AccessMonster.com | last post by:
I'm not sure why the following isn't working. The subform loads correctly, but no data is displayed. I'm certain that there is data and I have checked that the SQL statement does in fact return...
3
by: emgallagher | last post by:
I have a form which lists studies. People can filter the form based on details about the study, such as the study type. Currently users filter via the right click method. I would like to be...
7
by: Katherine | last post by:
I'm trying to filter the records on the mainform (MailingList) of my database using a field contained in a subform (Donations). I was basing my code off Allen Browne's Access Tips page (here:...
2
by: jambonjamasb | last post by:
What I am trying to do is have a combo box which allows me to filter for a certain field in a subform. I can't think how to do this and have tried with the follwoing code. Basically the field in...
2
by: Matthew Wells | last post by:
Hi there. I am a programmer for a living, but this problem has my whole team stumped. I have a subform based on a query. I'm not using the "LinkMaster/ChildFields" properties ( I have my...
8
by: bobh | last post by:
Hi All, Has anyone figured out how to reset the recordsource of a openned form?? ex: User opens a form, selects a value from combo1, selects a value from combo2, in the AfterUpdate event of...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.