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

Filter and Sort properties of Access Form with SQL Server backend

Hello,

I have a form that shows a lot of records based on a passthrough query
to a SQL Server database. I noticed that the Filter and the Sort
property of the form do not properly work, often the filter and sorting
are not performed. When I base the form on a query on an Access-table
everything works just fine, but when I use the passthrough query
nothing happens.

Does anyone know how to solve this problem?

Greetings,
Chris.

Oct 17 '06 #1
6 3051
what does your passthrough query, with filter / sorting look like ?

Chris Zoper wrote:
Hello,

I have a form that shows a lot of records based on a passthrough query
to a SQL Server database. I noticed that the Filter and the Sort
property of the form do not properly work, often the filter and sorting
are not performed. When I base the form on a query on an Access-table
everything works just fine, but when I use the passthrough query
nothing happens.

Does anyone know how to solve this problem?

Greetings,
Chris.
Oct 17 '06 #2
The passthrough query just says 'SELECT * FROM vwEventList'
vwEventList is a view on the SQL Server database that selects data from
a few tables and a few other views. It also uses a User Defined
Function, so vwEventList is a bit of a complex view.....
le*********@natpro.com wrote:
what does your passthrough query, with filter / sorting look like ?

Chris Zoper wrote:
Hello,

I have a form that shows a lot of records based on a passthrough query
to a SQL Server database. I noticed that the Filter and the Sort
property of the form do not properly work, often the filter and sorting
are not performed. When I base the form on a query on an Access-table
everything works just fine, but when I use the passthrough query
nothing happens.

Does anyone know how to solve this problem?

Greetings,
Chris.
Oct 17 '06 #3
I forgot: the passthrough and view do not have filters or sorting, the
passthroug query returns all records. Filtering and sorting are done by
the Form's Filter and Sort properties....

Chris Zoper wrote:
The passthrough query just says 'SELECT * FROM vwEventList'
vwEventList is a view on the SQL Server database that selects data from
a few tables and a few other views. It also uses a User Defined
Function, so vwEventList is a bit of a complex view.....
le*********@natpro.com wrote:
what does your passthrough query, with filter / sorting look like ?

Chris Zoper wrote:
Hello,
>
I have a form that shows a lot of records based on a passthrough query
to a SQL Server database. I noticed that the Filter and the Sort
property of the form do not properly work, often the filter and sorting
are not performed. When I base the form on a query on an Access-table
everything works just fine, but when I use the passthrough query
nothing happens.
>
Does anyone know how to solve this problem?
>
Greetings,
Chris.
Oct 17 '06 #4
Just found out myself what causes the problem: a requery of the form
after setting the Sort property! So problem solved!
Chris Zoper wrote:
I forgot: the passthrough and view do not have filters or sorting, the
passthroug query returns all records. Filtering and sorting are done by
the Form's Filter and Sort properties....

Chris Zoper wrote:
The passthrough query just says 'SELECT * FROM vwEventList'
vwEventList is a view on the SQL Server database that selects data from
a few tables and a few other views. It also uses a User Defined
Function, so vwEventList is a bit of a complex view.....
le*********@natpro.com wrote:
what does your passthrough query, with filter / sorting look like ?
>
Chris Zoper wrote:
Hello,

I have a form that shows a lot of records based on a passthrough query
to a SQL Server database. I noticed that the Filter and the Sort
property of the form do not properly work, often the filter and sorting
are not performed. When I base the form on a query on an Access-table
everything works just fine, but when I use the passthrough query
nothing happens.

Does anyone know how to solve this problem?

Greetings,
Chris.
Oct 17 '06 #5
Chris Zoper wrote:
Just found out myself what causes the problem: a requery of the form
after setting the Sort property! So problem solved!
I was wondering about that!

I use Oracle PTQs all the time in forms and subform datasheets. I
always have a custom pop up with the Access sort and filter shortcut
menu items (along with the remove filter/sort which I usually title
"Default sort") for any PTQ datasheet. They work just fine by
themselves, though you're limited to simple asc and desc sorts. The one
filter menu item that allows you to type in text to filter by and press
enter is extremely useful.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Oct 17 '06 #6
Tim Marshall wrote:
>Just found out myself what causes the problem: a requery of the form
after setting the Sort property! So problem solved!
I use Oracle PTQs all the time in forms and subform datasheets.
And BTW, in my opinion, it's still good practice to limit the records
returned and not just a blanket select * from view/table without any
where criteria. My views are constructed dynamically by the user in my
main app and (because of the poor structure of the Oracle database app
my apps report on) every inquiry action in my app constructs up to 4
separate views (view names are reused) that are unioned together. All
through the Access FE.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Oct 17 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sanders | last post by:
I inherited an Access database and I have not worked with Access for very long. I have a Form that goes through a bunch of different queries until it spits out a datasheet with all kinds of...
7
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals....
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...
0
by: Malcolm Cook | last post by:
I've discovered: Using "File > Print Preview" in a form's datasheet view with a server Filter crashes access after previewing... ....that is, unless ServerFilterByForm has been turned off...
2
by: Patrick Gonzalez | last post by:
Is it possible to use the built-in filter functions (ie. "Filter by Selection", etc..) when a form's recordsource has been set to a recordset object during the load event. When I try to do this, I...
4
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced...
11
by: Bob | last post by:
I am in the process of upgrading an Access database to SQL Server (and climbing that learning curve!). The wizard happily upgraded all the tables and I can link to them OK using ODBC. The...
1
by: Barb.Richards | last post by:
I have created an append query that pulls information from one database, and will append the selected information into a new table. The fields are setup like 'number' 'category' 'code' 'shares' and...
2
by: smook | last post by:
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.