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

Possible: Select field1 where field2 not in (cursorName) ? 1

Status
Not open for further replies.

shelbytll

Programmer
Dec 7, 2001
135
SG
I have made a select statment and store in cursor tempcur.
I want to make another select statment where field1 Not In tempcur.

Is it possible?
for example:
select field2 from tablename where field1 not in (tempcur) I am a clever newbie...[peace]
 
If not possible, how about does combo box has an ItemExist function so that I can do a check whether this value exist before I AddItem. I am a clever newbie...[peace]
 
You may want to just use a simple sub-query - no temp cursor necessary.
Code:
select field2 from tablename ;
 where field1 not in ;
 (select field3 from table2)
Rick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top