There is a sample in my signature that should give you the general idea. See how that .works, and adapt it to your program. From there, you re-write the SQL to accept parameters, and adjust the...