Combo Box

Z

ZBC

(I tried an earlier post ... go not response.)

How do I make a combo box not editable by the user if it is based off of
a table?
I tried locking it ... that did not work

Bob
 
D

Dirk Goldgar

ZBC said:
(I tried an earlier post ... go not response.)

How do I make a combo box not editable by the user if it is based off
of a table?
I tried locking it ... that did not work

Bob

What do you mean by "not editable"? If you set the control's Locked
property, the user will *not* be able to change its value, so that can't
be what you mean by "not editable".
 
J

John Vinson

(I tried an earlier post ... go not response.)

How do I make a combo box not editable by the user if it is based off of
a table?
I tried locking it ... that did not work

Bob

I *think* you may mean that you want to set the combo's Limit to List
property to True. This will restrict the user to selecting one of the
existing entries, and prohibit typing something that is not predefined
in the list.
 
Z

ZBC

You might want to look at my other post "Confused on Record Source vs
Control Source ?"
I want to keep the user from changing values in tblUsers ... I am using
tblUsers as a list (limited as such) of the possible choices of User#.
 
J

John Vinson

I want to keep the user from changing values in tblUsers ... I am using
tblUsers as a list (limited as such) of the possible choices of User#.

If you're using the combo box to navigate to a record, the combo box
MUST BE UNBOUND: its Control source should be blank.

The RowSource is a table, query, or list of values *from which the
combo gets its data*.

The ControlSource is a field in the form's recordsource *into which
the combo puts the selected value*.

If you don't want a value put into the table when you select from the
combo, just leave the Control SOurce blank.
 
Z

ZBC

Thank You!
Bob

John said:
If you're using the combo box to navigate to a record, the combo box
MUST BE UNBOUND: its Control source should be blank.

The RowSource is a table, query, or list of values *from which the
combo gets its data*.

The ControlSource is a field in the form's recordsource *into which
the combo puts the selected value*.

If you don't want a value put into the table when you select from the
combo, just leave the Control SOurce blank.
 

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

Weekly Report 2
Combo box 0
Combo or list box 0
Combo or list box 0
Populate a table based on check box status 2
Keying Data into a Combo Box 0
Proposal template with removable sections 0
Combo Box 2

Top