Re: List Box shows -1 in the field on the form when it opens
- From: Bill Mosca <BillMosca@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Apr 2006 09:50:01 -0700
Saj
You just answered your own question. You said that the first name in the
stock table is "-1". If your combo box uses that field as its ControlSource
then that is what you will see regardless of what is in the combo list.
A bound combo box does 2 things. It shows what is in the field it is bound
to, and it provides a list to choose from to replace or fill that field.
--
Bill Mosca
"Saj" wrote:
Hi again.
Bill - the only field that contains a -1 is the first field in the stock
table for the first stockname, so when I go to the combo box that looks at
all the stock items and lists them, it shows -1 for that field.
Bob - I have a stock table that contains stockNo, stockname
The stockNo is a autoNo and the primary key, the stock name is the combo box
that is a value list that I typed and contains:
Accessories
Clothing - Ballet
etc
The stock name field is Text type. When I look in this table the firt item
instead of shoes (which is what was chosen from the drop down list and is the
last item in the list) it shows -1.
I can not change the stockno to a text value as it has relationships with
other fields in other tables.
But it is not the stockno that is the problem, it is the stockname, why does
it keep changing the first stockname in the Stock table to a -1?
Still no clearer on this, any other suggestions as not got much hair left on
my head from all the pulling I have been doing...
Thanks
"Bob Miller" wrote:
Look at the Control source of the combobox and then determine the data
type of that field in the underlying table. Make sure it is Text.
Saj Wrote:
Hi to Bill & Bob
I re-looked at this field and it is a combo box that was created to
lookup
items:
required - yes
allow zero - no
indexed no - no
display - combo box
row Source - Value List
Bound Column - 1
Column count - 1
Column head - no
limit to list - yes
The row source shows the items as I typed in the list when created
with
wizard first items:
"Accessories";"Clothing - Italian";"Clothing - Ballet";"Shoes" and so
on
So not sure where the -1 comes from?
If you have any ideas please help... thanks again
--
Bob Miller
- References:
- Re: List Box shows -1 in the field on the form when it opens
- From: Bob Miller
- Re: List Box shows -1 in the field on the form when it opens
- From: Bob Miller
- Re: List Box shows -1 in the field on the form when it opens
- Prev by Date: Re: Current date as default
- Next by Date: Re: List Box shows -1 in the field on the form when it opens
- Previous by thread: Re: List Box shows -1 in the field on the form when it opens
- Next by thread: Re: List Box shows -1 in the field on the form when it opens
- Index(es):
Relevant Pages
|