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!

Stuck on something simple

Status
Not open for further replies.

UnsolvedCoding

Technical User
Jul 20, 2011
424
US
Oh ya - I am working with Excel
 
You may have more luck in the VBA Visual Basic for Applications (Microsoft) Forum.

Simi
 
UnsolvedCoding said:
If rsERDB("STATUS_CD") <> "P" Then Cells(i, "L").Value = "Not Pending"

Your SQL statement has selected only records that have STATUS_CD="P", so there is no possibility of any cell being given the value "Not Pending".

I suspect you want to take the

where STATUS_CD='Y'

part out of your SELECT statement.

This all assumes that rsERDB was opened with the SELECT statement you've shown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top