1,105,288 Community Members

Update Bound Listbox

Member Avatar
Thomas7399
Newbie Poster
14 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,

I have a listbox on my form that is bound to my SQL table. I have various functions to that table from my from (add rows, delete rows, edit rows). However, after I do one of these functions, the data in the SQL table updates correctly, but the listbox still shows the table values prior to doing that function. How do I update the contents of my listbox with the new values in my SQL table?

I have tried to re-bind the data....maybe I did it incorrectly. I dont have access to my code at the moment, otherwise I would post it...Thanks

Member Avatar
Begginnerdev
Veteran Poster
1,141 posts since Apr 2010
Reputation Points: 251 [?]
Q&As Helped to Solve: 191 [?]
Skill Endorsements: 15 [?]
 
1
 

If you are popoulating the listbox with a dataset, you just need to refresh the data.

What connection type are you using?

Member Avatar
Thomas7399
Newbie Poster
14 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I got it to work by refreshing the data. Thanks! What do you mean by what connection type am I using?

Question Answered as of 1 Year Ago by Begginnerdev
Member Avatar
Begginnerdev
Veteran Poster
1,141 posts since Apr 2010
Reputation Points: 251 [?]
Q&As Helped to Solve: 191 [?]
Skill Endorsements: 15 [?]
 
0
 

Some connection types include:

1)OleDB
2)SQLClient
3)ADO
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article