Hello,
Can anyone share with me how to set up the following in vb code?
Rs = Select Distinct Super from Snapshot
Rs.movefirst
Do while not rs.eof
Rs1 = select all from Snapshot where super equal rs!empnum or empnum equal rs!super
Rs2 = select all from Snapshot where super equal rs1!empnum or empnum equal rs1!super
Rs3 = select all from Snapshot where super equal rs2!empnum or empnum equal rs2!super
Rs4 = select all from Snapshot where super equal rs3!empnum or empnum equal rs3!super
Rs5 = select all from Snapshot where super equal rs4!empnum or empnum equal rs4!super
Rs6 = select all from Snapshot where super equal rs5!empnum or empnum equal rs5!super
Rs7 = select all from Snapshot where super equal rs6!empnum or empnum equal rs6!super
Rs8 = union rs1, rs2, rs3, rs4, rs5, rs6, rs7, sort ascending by empname
Rs.movenext
Loop
Thank you in advance for your help!
Foxhound
Can anyone share with me how to set up the following in vb code?
Rs = Select Distinct Super from Snapshot
Rs.movefirst
Do while not rs.eof
Rs1 = select all from Snapshot where super equal rs!empnum or empnum equal rs!super
Rs2 = select all from Snapshot where super equal rs1!empnum or empnum equal rs1!super
Rs3 = select all from Snapshot where super equal rs2!empnum or empnum equal rs2!super
Rs4 = select all from Snapshot where super equal rs3!empnum or empnum equal rs3!super
Rs5 = select all from Snapshot where super equal rs4!empnum or empnum equal rs4!super
Rs6 = select all from Snapshot where super equal rs5!empnum or empnum equal rs5!super
Rs7 = select all from Snapshot where super equal rs6!empnum or empnum equal rs6!super
Rs8 = union rs1, rs2, rs3, rs4, rs5, rs6, rs7, sort ascending by empname
Rs.movenext
Loop
Thank you in advance for your help!
Foxhound