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

Need List Box Assistance

Status
Not open for further replies.

vr

Programmer
Oct 14, 1999
54
0
0
US
I have a form with a text box to fill a list box.

The user wants to be able to input a value in the text box, depress enter and have it load to the list box.

Can anyone help?
 
Use the on_exit event of the text box to set the row source of the list box. Or you could just requery the row source of the list box. Make sure you have added a parameter to your row source SQL statement or query based on the entry made by the user into the text box on your form. For example, Forms!frmYourFormName!txtYourTextBox.

Good coding,
 
When the after_update event fires for the text box, edit and update the record set rowsource for the list box.. after that do a requery on the listbox.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top