"Xiphias" <Am*******@yahoo.com> wrote in message
news:40***********************@news.wanadoo.nl...
Hi,
Can someone help me to create a drop box where I can also add new records?
Here is the problem:
I m working on a form with a drop box.
When I select a '"name" in the drop box the form will change to that record.
This is ok
If I type a new "name" in the box and press enter, the record will be safed
with the new"name" and I will loose the old "name"
And what I want is that after typing a new"name" the record changes to a
blank record
The "name" is the primary key.
I also did a test with the auto ID as primary key and then I cant add a
new"name".
I have heard that its better not to make the auto ID the Primary record, but
I cant remember why :)
I'm a bit confused by what you're describing. There are two standard uses for a
ComboBox on a form. To enter data in the current record when the ComboBox is
bound to a field in the table or to navigate amongst the records displayed in
the form. You can't use it simultaneously to do both.
If the ComboBox is bound then it should never cause your form to "Change to a
different record". If it is set up for navigation then it should never change
the entry on the current record.
If you are using a bound ComboBox for data entry and you want to enter a new
record then you need to navigate to the new record position *before* you make an
entry in the ComboBox. Any time you are sitting on an existing record and make
an entry in a bound ComboBox you are changing the entry in the current record.
It is no different than typing over an existing value in a TextBox.
Did you use the wizard to create you ComboBox? The wizard provides choices for
either data entry or form navigation. If you choose the latter and then
manually bind the ComboBox to a field afterwards you could end up with a real
mess.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com