Format of SSN Field on Form

K

Ken Hudson

I have a table with an pkEmpID (auto number) and txtSSN, txtLName, etc. fields.
I have a form with a combo box used to query this table. The combo box
retrieves the pkEmpID and txtSSN when the user types in the SSN. (The pkEmpID
is bound to a field in another table.)
When I type in the SSN, I want the combo box to display it as @@@-@@-@@@@.
If I set the field format to @@@-@@-@@@@ in the table, the SSN displays the
data okay on the form. But you have to type in the dashes as part of the
entry. I prefer not to have to do that.
I took the formatting off the table field and tried to set the format for
the combo box on the form to @@@-@@-@@@@, but that did not work.
Does this have something to do with the fact that the combo box is bound to
the auto-number and therefore the formatting doesn't take or is there
something else I am missing?
TIA.
 
A

Arvin Meyer [MVP]

Try formatting the SSN in a query and binding the combo box to the query.
 
K

Ken Hudson

Hi Arvin,
Thanks for the response.
I tried that but with the Auto Expand property set to Yes, I still have to
enter the hyphens in the SSN to get a match.
Perhaps it will only work that way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Show Button 3
Formatting a Combo box 12
Formatting combo box drop-down list 1
MS Access problem 0
Search form 0
cant get cbo to stop outputting key# 0
Relist of earlier question 2
Default value on SSN field 1

Top