Let me see if I can explain the situation better. I have a form with 2 ption
buttons and one combobox. The choice of the option button determines what is
avaliable for selection in the combobox.
If the user selects the project option button, the combobox have avaliable
project numbers, which are strictly number. If the user selects the Site
option button, the combobox have avaliable site numbers, which are
combination of numbers and letters, alphanumeric (or text).
When the form opens and I select the Site option first, everything works ok.
That means no errors to hang-ups, nothing. But if I select the project option
first, the is no problem when I make a selection in the combobox. The problem
and erroe arises whan I try to change my selection.
Lets say for instance I made a mistake by selecting the project option
button, or I changed my mind and decided that I wanted to run the site
option. If I now select the site option,after selecting the project option
and selected a project number in the combobox. If i now select the site
option and try o select the site ID number in the combobox, this is when I
get the error message and the program grid to an halt.
This is why I was hoping I could find a fix or a better way around this
problem that doesn't involve creating 2 comboboxes for either option.
"Al Campagna" wrote:
> Ayo,
> The Format of a numeric field only applies to how a number is displayed,
> and has no effect on the actual value.
> You can not enter text into a numeric field. If you must... then the
> field should be defined as text in your table design.
> --
> hth
> Al Campagna
> Microsoft Access MVP
> http://home.comcast.net/~cccsolutions/index.html
>
> "Find a job that you love... and you'll never work a day in your life."
>
> "Ayo" <(E-Mail Removed)> wrote in message
> news:B588F1A7-914A-4E55-8690-(E-Mail Removed)...
> > Me!ProjectNumber.Format = "Text"
> >
> > Can I use something like this to change a combobox's format from number to
> > text. My problem is I get an error message in the combobox telling me that
> > I
> > am trying to enter a text in a numeric field. I figured if I change the
> > object's format right before I make the selection, than thevalue in the
> > field
> > will will be recognized as a text data type.
> > Thanks
> >
>
>
>