Hello All -
I have a T-SQL cursor that works great in SQL Server. Basically it will open a main cursor (cursor1) from tableA and then it opens a second cursor (cursor2) based on the same table (tableA) from the first cursor.
Basic psedo code:
Code:
open cusror1
select name, id from tableA
where id >500
order by id desc
fetch into @name, @id
open cursor2
select name from table A
where id < @id
order by id desc
perform some stuff
close cursor 2
fetch next cursor1
etc.
I need to convert to Access. Is this possible? Do I need to use recordsets? I am using Access 2007.
Thank you in advance!!