Rob,
I'm pretty sure what you're describing is the default behavior or a combo
box. Create a simple join query for your Name and SSN so that your
returning a name field and the SSN field. Set that as your Row Source. Set
your column count to two, the column widths appropriately to be able to view
everything (name might be a bit long), and set the bound column to 1.
When you select the dropdown, you should see both the name and the SSN in
two columns, but after selecting the value, you should only see the first
column that has a width greater than 0.
If that doesn't work as you were seeking, please clarify what's missing.
HTH,
Pat
> Is it possible to have a field in a table ( A) such as social security #
>
[quoted text clipped - 11 lines]
> Thanks
> Rob
Rob - 08 Sep 2004 20:51 GMT
Thanks Pat you have it exactly the way I did it.
The problem is that my users would rather not see The
bound column ( SSN which is what the table calls for )
What I would like to do is have the drop down do exactly what
you are saying but after you choose the SSN,Name the Name shows
in the form box not the SSN even though the SSN is being saved at the table
level.
Obviously if I choose Name or 2 as the bound column ( Assuming my query was
written as SSN,Name (1,2) then after I choose the SSN,Name from my drop down
the table will complain because I am trying to put a text into a number
datatype.
That is not what I want. I only want to see the name at the form level but
the SSN in the table. It is really just for the end user not to have to look at
SSN.
Thanks again for the time.
Rob
Pieter Linden - 09 Sep 2004 03:45 GMT
If you only want to store the SSN but see the name, then why not set
the column width on the first column to zero?
Pat - 10 Sep 2004 15:23 GMT
Rob,
You just need to reverse the field order on your combo box. Instead of SSN,
Name (bound col 1), you want Name, SSN (bound col 2). Access will always
display the first visible field after a combo selection.
HTH - Reply back if not.
Pat
> Thanks Pat you have it exactly the way I did it.
> The problem is that my users would rather not see The
[quoted text clipped - 12 lines]
> Thanks again for the time.
> Rob