A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

list box shows ID field instead of value list text



 
 
Thread Tools Display Modes
  #1  
Old January 1st, 2007, 05:36 PM posted to microsoft.public.access.forms
FilemakerPro_Developer
external usenet poster
 
Posts: 192
Default list box shows ID field instead of value list text

Hppay New Year.

I have a form that is perfect except I have a list box to a related
table/value list.
In this form the list box shows the value list properly but when the user
selects the option it returns the serialID not the value which isn't very
helpful to the user.

I don't want to recreate the form to add the related value list table. I
just want the value typeA or typeB in the list instead of the serial number 1
or 2 so the user knows what type of data entry it is. Can you fix it with a
calculated field and do I add a 2nd field to the form?
--
Janis
  #2  
Old January 1st, 2007, 05:55 PM posted to microsoft.public.access.forms
Al Campagna
external usenet poster
 
Posts: 421
Default list box shows ID field instead of value list text

Filemaker,
The following setup will allow the user to select a SerialID (1, 2, etc) by SerialText
("TypeA", "TypeB", etc), but store the SerialID in the bound listbox.

Given a listbox named lstSerialID (same for combos too) with 2 columns (SerialID,
SerialText)
ControlSource = SerialID
NoOfColumns = 2
ColumnWidths = 0"; 1" (Hides the SerialID column)

The user will only see the SerialText values displayed in the listbox, so selection is
easy...
However, lstSerialID, while displaying the SerialText to the user, really stores the
SerialID in lstSerialID... which is really the value you wnat to "capture" to your
SerialID table field.
--
hth
Al Campagna
Candia Computer Consulting
Microsoft MVP - Candia, NH USA
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."



"FilemakerPro_Developer" wrote in
message ...
Hppay New Year.

I have a form that is perfect except I have a list box to a related
table/value list.
In this form the list box shows the value list properly but when the user
selects the option it returns the serialID not the value which isn't very
helpful to the user.

I don't want to recreate the form to add the related value list table. I
just want the value typeA or typeB in the list instead of the serial number 1
or 2 so the user knows what type of data entry it is. Can you fix it with a
calculated field and do I add a 2nd field to the form?
--
Janis



  #3  
Old January 1st, 2007, 08:46 PM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default list box shows ID field instead of value list text

Al Campagna wrote:

Microsoft MVP


Excellent! Congratulations, Al.

--
Steve Schapel, Microsoft Access MVP
  #4  
Old January 2nd, 2007, 12:07 AM posted to microsoft.public.access.forms
Al Campagna
external usenet poster
 
Posts: 4
Default list box shows ID field instead of value list text

Thank you Steve!
And thanks for your kind comment on the private NG, and... all your help over the years!
--
Al Campagna
Candia Computer Consulting
Microsoft MVP - Candia, NH USA
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

"Steve Schapel" wrote in message
...
Al Campagna wrote:

Microsoft MVP


Excellent! Congratulations, Al.

--
Steve Schapel, Microsoft Access MVP



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.