473,507 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

combo box multi columns

This should be easy to do...well I thought so

a combo box that needs mult entry types.

if the columns are something like this

1 Caucasian
2 Hispanic
3 African American
make it so that you can type 1 or C 2 or H 3 or A
and then store the text entry into the table

can you get a combo box to accept both columns in entry
or would you do this in code?
Oct 16 '07 #1
3 2394
I did want to say that when I was listing C H A that was the auto
complete that works in combobox input.

They also just want to display the text and not the numbers on the
form.

I can see 123 or CHA but not both for input unless I do it in code but
it seems that access should allow for both columns ....ok thinking
more what if both columns had text or numbers this would not work.
so it should be code...correct ?
On Tue, 16 Oct 2007 14:31:34 GMT, sparks <js******@swbell.netwrote:
>This should be easy to do...well I thought so

a combo box that needs mult entry types.

if the columns are something like this

1 Caucasian
2 Hispanic
3 African American
make it so that you can type 1 or C 2 or H 3 or A
and then store the text entry into the table

can you get a combo box to accept both columns in entry
or would you do this in code?
Oct 16 '07 #2
On Tue, 16 Oct 2007 14:31:34 GMT, sparks wrote:
This should be easy to do...well I thought so

a combo box that needs mult entry types.

if the columns are something like this

1 Caucasian
2 Hispanic
3 African American

make it so that you can type 1 or C 2 or H 3 or A
and then store the text entry into the table

can you get a combo box to accept both columns in entry
or would you do this in code?
No. A combo will only accept an entry in the first visible column, so
if Column 1 is the first visible column you can only enter a 1,2, or
3. If you hide that number column, then you can only enter the text
value.
If it's the text value you wish to store, then set the bound column of
the Combo to 2 and set it's control source to whatever the table's
text datatype field is.

If you only wish to store the Text value, why are you even including
the number column in the combo box?
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Oct 16 '07 #3
>If you only wish to store the Text value, why are you even including
the number column in the combo box?
well the people have the form set up as 1=Caucasian 2= Hispanic...etc

so why can't we enter 1 or C

we get this kind of thing all the time, then on 1=male 2=female
ok we always enter M or F.

go figure...I think that some of the people get it and some don't and
just want to hold a form up to the screen and somehow it flows into
the database. WHY do I have to enter it on each person, shouldn't it
know?

LOL

I thought about something like
for 1 or c or C

If KeyAscii = 49 Or KeyAscii = 97 Or KeyAscii = 65 Then
Me!Race.Column(0) = 1

but since you can't set a value it won't work.

On Tue, 16 Oct 2007 08:03:54 -0700, fredg <fg******@example.invalid>
wrote:
>On Tue, 16 Oct 2007 14:31:34 GMT, sparks wrote:
>This should be easy to do...well I thought so

a combo box that needs mult entry types.

if the columns are something like this

1 Caucasian
2 Hispanic
3 African American

make it so that you can type 1 or C 2 or H 3 or A
and then store the text entry into the table

can you get a combo box to accept both columns in entry
or would you do this in code?

No. A combo will only accept an entry in the first visible column, so
if Column 1 is the first visible column you can only enter a 1,2, or
3. If you hide that number column, then you can only enter the text
value.
If it's the text value you wish to store, then set the bound column of
the Combo to 2 and set it's control source to whatever the table's
text datatype field is.

If you only wish to store the Text value, why are you even including
the number column in the combo box?
Oct 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2078
by: | last post by:
Is it possible to extend this function to dynamically create a combo boxes from the db table....How would do this...I tried passing a 'Select' type to the function but got a blank entry....Any...
2
5432
by: Sean | last post by:
Greetings all, I am attempting to make a form that will filter through several tables that (I believe) have refretial integrity. I am pulling data from several tables into the form and i would...
6
11767
by: CindyH | last post by:
Hi Does anyone know how to create a multi column combo box from the same table? Thanks, Cindy
0
1073
by: Eddie | last post by:
In Microsoft Access form, combo box can be binded to the table or query and can be shown as multi column, getting a actual binded column and showing columns. I'm struggling to make a...
1
3281
by: ratethebuilder.co.uk | last post by:
Hi I am trying to replicate a drop down combo box in C# that I have in a MS Access form. The combo box has three columns, each of which comes from a different field in the database. I can...
3
3521
by: Ron | last post by:
Hi, If it's possible, a quick example would REALLY help. I'm clueless which makes me boxless as well. ::grin:: TIA ron
4
64528
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
2
6536
by: Exick | last post by:
This is more of a minor annoyance/curiosity than a real problem, but I'm wondering if anyone here can provide some answers. I have a form bound to a table with lots of controls on it that are...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
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,...
0
7372
jinu1996
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...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.