PC Review


Reply
Thread Tools Rate Thread

combo box fills in arbitrary value

 
 
bicyclops
Guest
Posts: n/a
 
      14th May 2010
A combo box on a form selects from a list of codes (001, 015, 400, 411, 500
etc). These are formatted as text with an input mask of 000. The Row Source
is a simple Select statement that draws from a table.

When you start typing the first character in this box, Access auto fills
after the cursor with the value '411'. So if I type 0, the value is 0411,
which is not even a valid code. Even if you type 4 as the first character it
auto fills with 4411. Doesn't seem to make any sense. I've tried changing
every combo box property (I think) including those having to do with
defaults. Nothing seems to change this behavior.

I use many combo boxes, and only a few have behaved like this; I can't
figure out why.
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      14th May 2010
"bicyclops" <(E-Mail Removed)> wrote in message
news:BE6594AB-A947-4FAC-A0C9-(E-Mail Removed)...
>A combo box on a form selects from a list of codes (001, 015, 400, 411, 500
> etc). These are formatted as text with an input mask of 000. The Row
> Source
> is a simple Select statement that draws from a table.
>
> When you start typing the first character in this box, Access auto fills
> after the cursor with the value '411'. So if I type 0, the value is 0411,
> which is not even a valid code. Even if you type 4 as the first character
> it
> auto fills with 4411. Doesn't seem to make any sense. I've tried changing
> every combo box property (I think) including those having to do with
> defaults. Nothing seems to change this behavior.
>
> I use many combo boxes, and only a few have behaved like this; I can't
> figure out why.



That sounds odd. Please post the following properties of the combo box:

1. Row Source
2. Bound Column
3. Control Source
4. Default Value
5. Column Count
6. Column Widths
7. Format

Also, if there is code or macros applied to any of the events of the combo
box, post the details of that.

Since you say the combo box's rowsource is a SELECT statement, please post
the names and types of the fields in the table from which that statement
selects.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
 
bicyclops
Guest
Posts: n/a
 
      14th May 2010
Dirk - answers below.

Row Source:
SELECT TblPartPrefix.PartPrefixID, TblPartPrefix.PartPrefix,
TblPartPrefix.[Prefix Description] FROM TblPartPrefix ORDER BY
TblPartPrefix.PartPrefix;

Bound Column:1
Control Source: PartPrefixID
Default Value: blank
Column Count: 3
column Widths: 0";0.5";2"
Format: blank

Thanks for looking into it!





"Dirk Goldgar" wrote:

> "bicyclops" <(E-Mail Removed)> wrote in message
> news:BE6594AB-A947-4FAC-A0C9-(E-Mail Removed)...
> >A combo box on a form selects from a list of codes (001, 015, 400, 411, 500
> > etc). These are formatted as text with an input mask of 000. The Row
> > Source
> > is a simple Select statement that draws from a table.
> >
> > When you start typing the first character in this box, Access auto fills
> > after the cursor with the value '411'. So if I type 0, the value is 0411,
> > which is not even a valid code. Even if you type 4 as the first character
> > it
> > auto fills with 4411. Doesn't seem to make any sense. I've tried changing
> > every combo box property (I think) including those having to do with
> > defaults. Nothing seems to change this behavior.
> >
> > I use many combo boxes, and only a few have behaved like this; I can't
> > figure out why.

>
>
> That sounds odd. Please post the following properties of the combo box:
>
> 1. Row Source
> 2. Bound Column
> 3. Control Source
> 4. Default Value
> 5. Column Count
> 6. Column Widths
> 7. Format
>
> Also, if there is code or macros applied to any of the events of the combo
> box, post the details of that.
>
> Since you say the combo box's rowsource is a SELECT statement, please post
> the names and types of the fields in the table from which that statement
> selects.
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips: www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)
>

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      14th May 2010
"bicyclops" <(E-Mail Removed)> wrote in message
news:BDA8C7D8-0119-49C1-9B8B-(E-Mail Removed)...
> Dirk - answers below.
>
> Row Source:
> SELECT TblPartPrefix.PartPrefixID, TblPartPrefix.PartPrefix,
> TblPartPrefix.[Prefix Description] FROM TblPartPrefix ORDER BY
> TblPartPrefix.PartPrefix;
>
> Bound Column:1
> Control Source: PartPrefixID
> Default Value: blank
> Column Count: 3
> column Widths: 0";0.5";2"
> Format: blank
>
> Thanks for looking into it!


Could you give me a few sample rows from TblPartPrefix? There aren't any
rows with the same PartPrefixID, are there? What type of data are
PartPrefixID and [Prefix Description]?

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
 
bicyclops
Guest
Posts: n/a
 
      14th May 2010
Samples:
PartPrefixID Part Type (Prefix) Prefix Description
1 001 CAD
2 400 Assembly
3 500 High-Level Assembly
4 998 Unknown
5 011 IC, Through Hole, Programmed
6 260 Stencil
7 350 Misc. Assembly
8 410 Flash Card Kit
9 411 EPROM Kit
10 999 Generics

The data types are Autonumber, Text & Text


"Dirk Goldgar" wrote:

> "bicyclops" <(E-Mail Removed)> wrote in message
> news:BDA8C7D8-0119-49C1-9B8B-(E-Mail Removed)...
> > Dirk - answers below.
> >
> > Row Source:
> > SELECT TblPartPrefix.PartPrefixID, TblPartPrefix.PartPrefix,
> > TblPartPrefix.[Prefix Description] FROM TblPartPrefix ORDER BY
> > TblPartPrefix.PartPrefix;
> >
> > Bound Column:1
> > Control Source: PartPrefixID
> > Default Value: blank
> > Column Count: 3
> > column Widths: 0";0.5";2"
> > Format: blank
> >
> > Thanks for looking into it!

>
> Could you give me a few sample rows from TblPartPrefix? There aren't any
> rows with the same PartPrefixID, are there? What type of data are
> PartPrefixID and [Prefix Description]?
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips: www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)
>

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      14th May 2010
"bicyclops" <(E-Mail Removed)> wrote in message
news:31C7B5A4-8D4B-4D01-A87E-(E-Mail Removed)...
> Samples:
> PartPrefixID Part Type (Prefix) Prefix Description
> 1 001 CAD
> 2 400 Assembly
> 3 500 High-Level Assembly
> 4 998 Unknown
> 5 011 IC, Through Hole, Programmed
> 6 260 Stencil
> 7 350 Misc. Assembly
> 8 410 Flash Card Kit
> 9 411 EPROM Kit
> 10 999 Generics
>
> The data types are Autonumber, Text & Text



No obvious explanation is jumping out at me. If you'd like to send me a
cut-down copy of your database, containing only the elements necessary to
demonstrate the problem, compacted and then zipped to less than 1MB in size
(preferably much smaller) -- I'll have a look at it, time permitting. You
can send it to the address derived by removing NO SPAM and ".invalid" from
the reply address of this message. If that address isn't visible to you,
you can get my address from my web site, which is listed in my sig. Do
*not* post my real address in the newsgroup -- I don't want to be buried in
spam and viruses.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      14th May 2010
>>These are formatted as text with an input mask of 000.
Where is the mask applied?

If you insert a value in the bound table field does the combo show the
correct corresponding information? Such as 8 then it show 410 Flash Card
Kit?


--
Build a little, test a little.


"bicyclops" wrote:

> Samples:
> PartPrefixID Part Type (Prefix) Prefix Description
> 1 001 CAD
> 2 400 Assembly
> 3 500 High-Level Assembly
> 4 998 Unknown
> 5 011 IC, Through Hole, Programmed
> 6 260 Stencil
> 7 350 Misc. Assembly
> 8 410 Flash Card Kit
> 9 411 EPROM Kit
> 10 999 Generics
>
> The data types are Autonumber, Text & Text
>
>
> "Dirk Goldgar" wrote:
>
> > "bicyclops" <(E-Mail Removed)> wrote in message
> > news:BDA8C7D8-0119-49C1-9B8B-(E-Mail Removed)...
> > > Dirk - answers below.
> > >
> > > Row Source:
> > > SELECT TblPartPrefix.PartPrefixID, TblPartPrefix.PartPrefix,
> > > TblPartPrefix.[Prefix Description] FROM TblPartPrefix ORDER BY
> > > TblPartPrefix.PartPrefix;
> > >
> > > Bound Column:1
> > > Control Source: PartPrefixID
> > > Default Value: blank
> > > Column Count: 3
> > > column Widths: 0";0.5";2"
> > > Format: blank
> > >
> > > Thanks for looking into it!

> >
> > Could you give me a few sample rows from TblPartPrefix? There aren't any
> > rows with the same PartPrefixID, are there? What type of data are
> > PartPrefixID and [Prefix Description]?
> >
> > --
> > Dirk Goldgar, MS Access MVP
> > Access tips: www.datagnostics.com/tips.html
> >
> > (please reply to the newsgroup)
> >

 
Reply With Quote
 
bicyclops
Guest
Posts: n/a
 
      17th May 2010
Karl/Dirk - My bad. I just double-checked, and I did have a default value in
the table after all. I had been checking the wrong table. You pointed me in
the right direction though. It works as expected after I removed the default
value.

Thanks again for looking into it.

"KARL DEWEY" wrote:

> >>These are formatted as text with an input mask of 000.

> Where is the mask applied?
>
> If you insert a value in the bound table field does the combo show the
> correct corresponding information? Such as 8 then it show 410 Flash Card
> Kit?
>
>
> --
> Build a little, test a little.
>
>
> "bicyclops" wrote:
>
> > Samples:
> > PartPrefixID Part Type (Prefix) Prefix Description
> > 1 001 CAD
> > 2 400 Assembly
> > 3 500 High-Level Assembly
> > 4 998 Unknown
> > 5 011 IC, Through Hole, Programmed
> > 6 260 Stencil
> > 7 350 Misc. Assembly
> > 8 410 Flash Card Kit
> > 9 411 EPROM Kit
> > 10 999 Generics
> >
> > The data types are Autonumber, Text & Text
> >
> >
> > "Dirk Goldgar" wrote:
> >
> > > "bicyclops" <(E-Mail Removed)> wrote in message
> > > news:BDA8C7D8-0119-49C1-9B8B-(E-Mail Removed)...
> > > > Dirk - answers below.
> > > >
> > > > Row Source:
> > > > SELECT TblPartPrefix.PartPrefixID, TblPartPrefix.PartPrefix,
> > > > TblPartPrefix.[Prefix Description] FROM TblPartPrefix ORDER BY
> > > > TblPartPrefix.PartPrefix;
> > > >
> > > > Bound Column:1
> > > > Control Source: PartPrefixID
> > > > Default Value: blank
> > > > Column Count: 3
> > > > column Widths: 0";0.5";2"
> > > > Format: blank
> > > >
> > > > Thanks for looking into it!
> > >
> > > Could you give me a few sample rows from TblPartPrefix? There aren't any
> > > rows with the same PartPrefixID, are there? What type of data are
> > > PartPrefixID and [Prefix Description]?
> > >
> > > --
> > > Dirk Goldgar, MS Access MVP
> > > Access tips: www.datagnostics.com/tips.html
> > >
> > > (please reply to the newsgroup)
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box that fills Text Box in form Richard Microsoft Access Forms 4 4th Apr 2010 02:53 PM
Combo box fills all records =?Utf-8?B?T25UaGVKb2JMZWFybmluZw==?= Microsoft Access Database Table Design 3 30th Oct 2007 07:34 PM
Combo box the fills itself as you go =?Utf-8?B?ZGRldGNob24=?= Microsoft Access 1 3rd Aug 2007 03:16 AM
Combo Box Fills In Calculated Text Box Maurita Microsoft Access Forms 3 1st Nov 2006 01:41 PM
combo box fills in two feilds =?Utf-8?B?SmVyZW15IENvcnNvbg==?= Microsoft Access Database Table Design 7 29th Sep 2006 08:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.