I guess that the command you need to know are how to read and write a Watch Job info in VB ?!?
Here they are :
Watch.GetJobInfo(Index: integer) : string
Watch.SetJobInfo(Index: integer, Value: string)
For the rest of your script, you got to perform a query on the correct table with the correct statement and put the result in your job info.
"Select email from table where repnum =" & Watch.GetJobInfo(1)
Assign the result to the job info 9 :
Watch.SetJobInfo(9, objQuery.email)
Here is an example of how to make such SQL statement using VBScript :
External Link