>That is "Property is Invalid for Table Cursors."
Like Trey asked, what is the backend DB? It may not support the TOP N clause. If it does not, you could try:
select min(drawing_code) from mytable where drawing code > current_code
Then use the return value to retrieve the data.
Mark McCasland
Midlothian, TX USA