Link to home
Start Free TrialLog in
Avatar of fbk2000
fbk2000

asked on

Manipulating DataCombo Box at Run Time

Here's the problem.  I have a datacombo bound to an ADO Control bound to an Excel sheet.  Everything works fine, except that I want to be able to reset the datacombo such that the first thing listed is once again listed in the box (i.e. reload the datacombo)  I've tried a few things that seem to work just fine within the IDE, but once I compile, they don't reset the text in the datacombo at all.  What's going on?

For example....

The first thing listed in the datacombo is "Select State"

then the user selects from a list of states provided by the excel sheet

But if the user presses a refresh button, I want to be able to revert the text back to "Select State"

I'm not sure why I can't get this to work outside of the IDE
Avatar of Robnox
Robnox
Flag of Canada image

What is the refresh button code doing?  My first thought is that the recordset cursor is not being moved.  Have you tried adodc.recordset.movefirst in the Refreshbutton_click event code?  
ASKER CERTIFIED SOLUTION
Avatar of davecarrr
davecarrr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fbk2000
fbk2000

ASKER

That's exactly what I ended up doing.