Hi,
I am using a form to enter data to a table. I have used the wizard to
create the combo box using another table as a source of options to
enter text values. The source table and destination tables both have
the appropriate fields set as text. However when I use the form and
check the table it is not the text value that is there but a
corresponding number that is the primary key for that table.
Any ideas anyone?
Thanks,
Will 3 1638
My guess is that you used a for one of the "text" values. Even though you
may see text in datasheet view, those store an "index value" into a list,
and they rise up to bite you in the tender places. If that is the case, get
rid of that Field Type, handle it a different way, and, voila', you will not
face this problem any more... you may face other problems, of course, but
you'll have removed a potential source of problems. (IMNSHO, Lookup Fields
are only helpful to novice end-users who use their data directly from the
datasheet; for more advanced users and developers, they are just a source of
irritation.)
In such cases, I use a lookup Table, and _knowingly_ store the recordID for
the value... and, when I want the text, I use a Query that joins the two
tables.
Larry Linson
Microsoft Office Access MVP
"Will" <wi******@yahoo.comwrote in message
news:d5**********************************@d62g2000 hsf.googlegroups.com...
Hi,
I am using a form to enter data to a table. I have used the wizard to
create the combo box using another table as a source of options to
enter text values. The source table and destination tables both have
the appropriate fields set as text. However when I use the form and
check the table it is not the text value that is there but a
corresponding number that is the primary key for that table.
Any ideas anyone?
Thanks,
Will
Oops. First sentence should read... 'My guess is that you used a Lookup
Field for one of the "text" values.'
Larry
"Larry Linson" <bo*****@localhost.notwrote in message
news:E7Yzj.11198$1_.4041@trnddc02...
My guess is that you used a for one of the "text" values. Even though you
may see text in datasheet view, those store an "index value" into a list,
and they rise up to bite you in the tender places. If that is the case,
get rid of that Field Type, handle it a different way, and, voila', you
will not face this problem any more... you may face other problems, of
course, but you'll have removed a potential source of problems. (IMNSHO,
Lookup Fields are only helpful to novice end-users who use their data
directly from the datasheet; for more advanced users and developers, they
are just a source of irritation.)
In such cases, I use a lookup Table, and _knowingly_ store the recordID
for the value... and, when I want the text, I use a Query that joins the
two tables.
Larry Linson
Microsoft Office Access MVP
"Will" <wi******@yahoo.comwrote in message
news:d5**********************************@d62g2000 hsf.googlegroups.com...
>Hi,
I am using a form to enter data to a table. I have used the wizard to create the combo box using another table as a source of options to enter text values. The source table and destination tables both have the appropriate fields set as text. However when I use the form and check the table it is not the text value that is there but a corresponding number that is the primary key for that table.
Any ideas anyone?
Thanks,
Will
On Mar 6, 8:10*pm, "Larry Linson" <boun...@localhost.notwrote:
Oops. *First sentence should read... 'My guess is that you used a Lookup
Field for one of the "text" values.'
*Larry
"Larry Linson" <boun...@localhost.notwrote in message
news:E7Yzj.11198$1_.4041@trnddc02...
My guess is that you used a for one of the "text" values. Even though you
may see text in datasheet view, those store an "index value" into a list,
and they rise up to bite you in the tender places. *If that is the case,
get rid of that Field Type, handle it a different way, and, voila', you
will not face this problem any more... you may face other problems, of
course, but you'll have removed a potential source of problems. (IMNSHO,
Lookup Fields are only helpful to novice end-users who use their data
directly from the datasheet; for more advanced users and developers, they
are just a source of irritation.)
In such cases, I use a lookup Table, and _knowingly_ store the recordID
for the value... and, when I want the text, I use a Query that joins the
two tables.
Larry Linson
Microsoft Office Access MVP
"Will" <willc...@yahoo.comwrote in message
news:d5**********************************@d62g2000 hsf.googlegroups.com...
Hi,
I am using a form to enter data to a table. *I have used the wizard to
create the combo box using another table as a source of options to
enter text values. *The source table and destination tables both have
the appropriate fields set as text. *However when I use the form and
check the table it is not the text value that is there but a
corresponding number that is the primary key for that table.
Any ideas anyone?
Thanks,
Will- Hide quoted text -
- Show quoted text -
I'm not sure what I did as the wizard is pretty straightforward,
however copying a combox I entered directly into the form and making
the appropriate alterations did the trick. Thanks Larry This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: meganrobertson22 |
last post by:
Hi Everyone-
I am trying to use a simple macro to set the value of a combo box on a
form, and I can't get it to work.
I have a macro with 2 actions: OpenForm and SetValue. I can open my
form,...
|
by: Shannan Casteel via AccessMonster.com |
last post by:
I have a table with information about different people...(i.e. Name, Address,
Phone, Fax, etc.). The table has been linked to Access. I have created a
combo box that uses this information. ...
|
by: cognoscento |
last post by:
I'm currently putting together a database for my work (not an expert by
any stretch, so muddling through as best as I can... you know the
story...) and I could use some advice and hand-holding
...
|
by: Jeff Brown |
last post by:
I have my form loading correctly and when i use navigation buttons they work
correctly, but the nav buttons would be a pain when the number of records
increased.
What i am trying to do is code...
|
by: hmiller |
last post by:
Hey everyone,
I am having a hell of a time trying to set this menu system up. Here's
what I'm trying to do.
Combo Box One; is populated by names under properties "row source"
"Phase 1"...
|
by: tlyczko |
last post by:
I read about limiting combo boxes' list data, for example, limiting the
list of values in the second combo based on values in the first combo,
and I found the Dev Ashish site link.
I have two...
|
by: kiranmn75 |
last post by:
I want to dynamically populate a combo box through javascript. Data is
coming from a array. Sometimes data list may contain items in excess of
2000.
Explorer takes more than 5 seconds to...
|
by: mirandacascade |
last post by:
I want to set things up such that a section of code will have been
executed by the time one clicks on the drop down arrow on a combo box
control. Currently, that section of code resides in the...
|
by: novoselent |
last post by:
This seems like it should be an easy thing, but I think I'm missing something simple here...or I'm just going about it all wrong...
Using Access 2003
I have a form that lists vehicle service...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |