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 to refresh my DTC drop-down.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hello. After adding a new record, my DTC drop-down needs to show the new value - but doesn't until after I exit the page and re-enter. Is there a way to make it refresh automatically on Save?

Thanks for your help,
Anna
 
You should:
1. myDropDown.Clear
2. rsMyRecordset.Open
3. rsMyRecordset.Close (no need to keep it open)
4. myDropDown.AddItem "add any additional entries"

You can plonk this in the thisPage_onenter()* event code so it runs every time the page loads. Or put it with the code that performs the Add/Delete functions.



*[add a Page Object DTC, then select the event in the Script Outline window (Server Objects & Events / thisPage / onenter)]
(Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top