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

error 1

Status
Not open for further replies.

djolie

Programmer
May 18, 2004
3
RO
Hello!
How can I empty a cursor inside a combobox? Next time I select the combobox items inside the same form it generates an error

SELECT cityname FROM cities,countries WHERE cities.countryid=countries.countryid AND countryname=thisform.combo5.value INTO CURSOR MyCursor READWRITE
thisform.combo6.RowSource="MyCursor"

 
Before you "empty it", may sure you reset the rowsource. i.e.
Code:
thisform.combo6.RowSource=""
ZAP in myCursor
thisform.combo6.RowSource="MyCursor"
Rick
 
how do I check if cursor exists or is empty?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top