Combo Box

cktcPeterson

Member
Local time
Today, 03:45
Joined
Mar 23, 2022
Messages
74
I have created a combo box on my form
Under row Source I have my desired fields
Name
Student ID

On the combo box, I want to select/type a name, but input the student id into the field.

Currently, I have in row source query
Name First (Ascending)
Student ID

I want to search by name and return the Student ID

I am able to see both columns

Thanks
 
is your combo bound?
set the Bound Column to 2.
set the Column Width to 1;0
 
You might find my Blogs on Combo Boxes useful:-

Combo Boxes - In the Beginning - Nifty Access​



Get Info From a Combo-box 1 - Nifty Access​

 
It is still now working the way I hope for
My drop-down shows

Name Student ID

Which I want.

I want to type in the name, but returns the student id. Currently when I type in Mrs Ann, it show Ms Ann.

1658245995596.png

1658246029361.png

1658246066380.png


Thanks everyone for the quick response and help.
 
Don’t use non alphanumeric in field and table names - will cause unexpected errors.

with regards mrs Ann and ms Ann - do they have the same studentid?

if so it will choose the first one it comes to
 

Users who are viewing this thread

Back
Top Bottom