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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Problem

Status
Not open for further replies.

FoxStudent

Technical User
Feb 24, 2000
85
GB
How do I fill a combo box up with values from a database field. I have a working data control on the form.

thank u
 
This should work for u:
---------------------------
Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF
Combo1.AddItem Data1.Recordset.Fields("MyFieldName").Value
Data1.Recordset.MoveNext
Loop
---------------------------

Good luck!

~Mike

Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top