Thanks Nancy, your solution worked great. I did solve it by using a table with sys(2015) as it's name but I prefer using a cursor.
Sam
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only