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

Combo Boxes Not Allowing Dynamic Sort

I have a combo box on a form that is based on an ID but I am displaying a title. I want to sort by that title and another date field. I am doing that in the form's record source. However, the client is also requesting that they be able to sort "on the fly" by different columns in this form (which is a subform in datasheet view). Error messages happen when one tries to dynamically sort, and occasionally the form goes to read only. Any workarounds?
Dec 10 '12 #1
3 2039
zmbd
5,501 Expert Mod 4TB
Sealstone:

1) You will have to provide the code you are using to do attempt your results.

2) Your title indicates a combo-box wherein your post seems to indicate a standard bound record set. We'll need you to clarify the actual design of your form.

3) Telling us that you get errors without any details does not help us help you. Please provide the error NUMBER and EXACT Text along with what conditions/settings were in place at the time of the error. Keep in mind that we're not in possession of your database; thus, we'll not be able to, in many cases, recreate your error in-house (Read as in each expert's house... we don't all sit in one place in the world :) - kinda neat if you think about it, I'm in the US others are in GB and Denmark and so many other places).

4) You will need to focus on ONE part of your issue in this thread... other issues need to be split into their own thread; thus, take you're most importaint problem and let's start with that here.
Dec 10 '12 #2
I have a main form of owning churches for consignment music. In my subform I list the music titles they own. I have a "Music ID" column in this subform which is a pointer to a table of unique music titles. This is the record source it is based on (a saved query):

Expand|Select|Wrap|Line Numbers
  1. SELECT DISTINCT Music.[Music ID], 
  2.    Music.Title, 
  3.    [Composer/Arranger] & "--" & [publisher] 
  4.       AS [Comp/Arr/Pub], 
  5.    [Type] & "/" & [Voicing] 
  6.       AS [Type/Voicing], 
  7.    Music.[Price per item], 
  8.    Music.[Product Type]
  9. FROM Music
  10. ORDER BY Music.Title;
I order this form by the date this music is available and this title (which appears in the Music ID field). To do this I modified the record source of the subform to the following SQL statement:

Expand|Select|Wrap|Line Numbers
  1. SELECT [Catalog List].*
  2. FROM [Music List] 
  3.    INNER JOIN [Catalog List] 
  4.       ON [Music List].[Music ID] = 
  5.          [Catalog List].[Music ID]
  6. ORDER BY [Catalog List].[Date Available],
  7.     [Music List].Title;
All of this works fine. The problem is the client now wants to be able to sort dynamically as the need arises in the subform on any column. When the [music id] combo box column is sorted dynamically with the sort button, the subform becomes read only.

I am not filtering here, only sorting. I am using Access 2010.
Dec 10 '12 #3
NeoPa
32,556 Expert Mod 16PB
I've had a similar problem recently with a subform. The one control, that causes the issues when sorted manually, is for a field set up in the table as a ComboBox field. There are various warnings, all over the web, about using such a design for fields, but I took over the database with this already set.

I believe, without yet having proved it unequivocally (as my efforts are towards designing the form to support proper sorting and filtering, such that the operator never needs to use Access's facility for either.), that this was what was confusing matters there.

See if that is involved in your design.
Dec 11 '12 #4

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

Similar topics

0
by: Joyce | last post by:
The XML Schema design problem to solve is as follows: We have 2 combo boxes to populate from schema data, let's say: 1. States 2. Cities (and this one gets populated depending on the choice of...
3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
1
by: arthur-e | last post by:
How can you select records based on more than one combo box - I have a combobox that selects records based on name (I'm sure this has been asked a thousand times - web site answer/link could be...
0
by: Andrew | last post by:
Hello, I am trying to create a chart whose underlying query is linked to 2 combo boxes on the same form. I want to pass the values from the combo boxes into the chart query to allow the chart...
2
by: taras.di | last post by:
Hi everyone, I've been reading up on how to create a drop down box who's context is dynamically produced based on the value of a previous select box. I've read a lot about some of the browsers...
5
by: Ant | last post by:
Hi, (Winform VS2003) I have a combo box bound to a typed data set. When the form loads, the combo box is popluated using a method containing the simple code below: ------------------------...
6
by: GaryGreenberg | last post by:
I am developing a web page for order processing using Spring MVC. In my JSP I have a table populated from the list of orders that are passed in the model (form backing object). Some fields there are...
2
by: ARC | last post by:
I'm testing a user's db that contains a very large number of records. I have an invoice screen, with an invoice select dropdown box that shows all invoices, and the customer's name, etc. With...
2
by: genkidave | last post by:
Hi there, I have three combo boxes that I would like to have Disabled (grayed out???) and preselected to a particular selection until a radio button (YES) is clicked, thus enabling the combo...
11
by: FaurKris | last post by:
I have a form with fixed list boxes which are of the persons name and address. Below those, I have Combo Boxes so I can manually enter data like phone number, email, etc. If the information is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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.