Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox in a form based on a table 1

Status
Not open for further replies.

yellowke

Programmer
Nov 5, 2002
48
BE
Hi,

Is it possible to use a combobox with a control source e.g. u218sub8.worktime and give the user only 2 possibilities to choose from e.g. partime and fulltime

So the combo box is based on an element from a table, but In that element of the table are only 2 possibilities allowed. I want to do this so the user can't type anything wrong in that element when they edit or add a record via the form.

Thanx guys
Yellowke
 
HI
This is possible..

Set the following properties for the combo box..

RowSourceType = 1
RowSource = "PartTime,FullTime"
ControlSource = "u218sub8.worktime"
FirstElement = 1

And then suitably add in your validation place.. that some value is surely selected and that the user has not skiped this combo OR did not choose any value at all.

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Happy New Year [bigears] [party] [2thumbsup]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top