Re: Combo-Box list unsorting
- From: Wissam <Wissam@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Dec 2007 11:18:01 -0800
Thanks a lot for your help.
Your precious suggestion fixed problem 1.
However, I still have problem 2.
I am still in the process of creating my database. I created a Form and I
added text boxes to the form by selecting a table (say Table1), then
drag-dropping fields from Table1 to the Form. I later decided that I do not
want one of the fields (say Field2) in Table1 and the Form. I deleted the
text box for Field2 from the form and then deleted the text box from Table1.
However, in the form Field option, I still see Field2 (ex. the code on the
title of the Field list box for the Form still says something like : SELECT
Table1.Field1,Table1.Field2,..; despite the fact that Field2 should have been
deleted from both the form and Table2. With this, whenever I try to open the
form again, I get a prompt box asking me to "enter parameter value for the
Table1.Field2" . Is there a way for me to fix this. Alternatively, is there a
way for me to open the form and delete Field2 from the SELECT... code
sentence?
Thanks a lot for your help.
"Douglas J. Steele" wrote:
Create a query that returns the data in the desired order, and use that.
query as the RowSource for the combo box rather than just the table.
For the second problem, take a look at the form's RecordSource. If it's a
query, make sure that the query doesn't include the deleted field.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Wissam" <Wissam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AE9C54DC-0CE7-423A-A8F3-A0A800ECD773@xxxxxxxxxxxxxxxx
Hi, I have a combo box on a form with the list rowsrource type from a
table
that contains names of medications. The list on the combo box gets
automatically sorted alphabatically. Is there a way for me to have the
list
in the combobox show the data as I want (based on the medication that will
be
chosen the most on top of the list of the combobox), rather than
alphabatically?
Another question: On that same form, I added a textbox that had a control
Source a field I (called visitType) in a table called visits. I do not
want
this field in the database any more. On the form design view, I deleted
the
text box and then deleted the control source field (visitType) from the
table. However,after I did that, whenever I try to open the form again, a
prompt box pups up asking me for the parameter visit.visitType value. On
the
field list for the form, I still see the visitType as an option (though it
is
not on the form). Is there a way to fix this?
Thanks a lot.
- Follow-Ups:
- Re: Combo-Box list unsorting
- From: Douglas J. Steele
- Re: Combo-Box list unsorting
- References:
- Re: Combo-Box list unsorting
- From: Douglas J. Steele
- Re: Combo-Box list unsorting
- Prev by Date: Re: Your easiest and best suggestion requested
- Next by Date: Re: Combo-Box list unsorting
- Previous by thread: Re: Combo-Box list unsorting
- Next by thread: Re: Combo-Box list unsorting
- Index(es):
Relevant Pages
|