Glad you solved this. Please be so klnd and share your solution using stored procedures in the database.

Blessings,
Deon...