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

Changing info on List Boxes

Status
Not open for further replies.

unisysce

MIS
Jan 30, 2008
8
US
First of all thanks for looking. I have a form with a field called CustomerName. On this form I have 3 list boxes (Open, Done, Closed) that look at query that points to the CustomerName field to display just the data that belongs to that client. When I open the form, the list boxes show the info for the first client. When I move to the next record, the list boxes don't change. They continue to show the info of the first client. I need this to change everytime I move to a new client.

Thanks for the help.
 
How are ya unisysce . . .

In the [blue]On Current[/blue] event of the form, copy/paste the following:
Code:
[blue]   Me![purple][b][i]ListboxName1[/i][/b][/purple].Requery
   Me![purple][b][i]ListboxName2[/i][/b][/purple].Requery
   Me![purple][b][i]ListboxName3[/i][/b][/purple].Requery[/blue]
[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
unisysce . . .

So sorry!, my previous post wont work. Try
Code:
[blue]   Me![purple][b][i]ListboxName1[/i][/b][/purple].RowSource = Me![purple][b][i]ListboxName1[/i][/b][/purple].RowSource
   Me![purple][b][i]ListboxName2[/i][/b][/purple].RowSource = Me![purple][b][i]ListboxName2[/i][/b][/purple].RowSource
   Me![purple][b][i]ListboxName3[/i][/b][/purple].RowSource = Me![purple][b][i]ListboxName3[/i][/b][/purple].RowSource[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Thanks a lot TheAceMan!! It works great. Now if I can double-click the record in the list box and have it open another form I'm set.

Thanks again
 
unisysce . . .

Have a look at the [blue]DoCmd.OpenForm[/blue] method and enter it in the [blue]After Update[/blue] event of the listbox(s) . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top