cboselection box-can I use it to enter data?

L

Lovespar

I have a form to make modificatins on data based on a number and that part
works well, however we need to be able to also enter data using this form
whick means typing in the number on a new record instead of just choosing it
from the drop down. this is an unbound record, with the Row Source being a
query.
Limit to list is No, Allow value List edits is Yes, locked is No.
Any help will be appreciated.
 
G

golfinray

Not 100% sure what exactly you want to do, but yes, you can enter data with a
combo. Use the combo box wizard to set up what you want. With it, you can
find records or look up records. You need to tell the wizard what query you
want and what field.
 
L

Lovespar

that is the problem, I can use the combo to look up records and align the
form with the record I have chosen, but it will not accept data that I type
in.
I have used the code from Tom Wickerath to find existing records but I also
need to be able to create new records and add to this field.
 
J

John W. Vinson

that is the problem, I can use the combo to look up records and align the
form with the record I have chosen, but it will not accept data that I type
in.
I have used the code from Tom Wickerath to find existing records but I also
need to be able to create new records and add to this field.

It's really best to use two different combo boxes for these two different
tasks. A Combo used for navigation will overwrite and destroy the data in its
Control Source if it's bound (unless you use some moderately tricky code).

I'll often put navigation controls in the form Header and make them a
different color, so the distinction between the two tasks is clear.
 

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

Top