Tammy,
Ok, here's how I would do this. No matter what, I would definitely have
this stuff in 2 separate fields. It is 2 separate pieces of
information. I would have a simple ProductFamilies table with a field
with the 10 families listed. In my form, I would have my BaseNumber
field bound to a combobox, which uses the ProductFamilies table as its
Row Source. Then, I would put the Extension textbox next to it on the
form, and between the BaseNumber combobox and the Extension textbox I
would place a label with a hyphen as its only Caption. And then on the
AfterUpdate event of the BaseNumber combobox I would put code like this...
Dim NextNumber As Integer
NextNumber = DMax("[Extension]","YourTable","[BaseNumber]=" &
Me.BaseNumber) + 1
Me.Extension = NextNumber
Then, whenever you need, for appearance sake within your application,
such as in your reports etc, the combined number as if it is a single
entity, just generate it "on the fly", either as a calculated field in
the query that the report is based on, or in the Control Source of an
unbound textbox on the report, using syntax such as...
=[BaseNumber] & "-" & [Extension]
--
Steve Schapel, Microsoft Access MVP
I wanted to add that each family of numbers could have the same extention
number. the first extention number for each family is 001
Thanks again!
"Steve Schapel" wrote: