sanders720
Programmer
Currently, I have three queries. The second is dependent on information from the first, and the third is dependent on information from the second (and thus the first). I would now like to code this in VB using sql statements. I would also like to not have to depend on running query #1 to do query #2, etc. My question is, what would be the syntax.
Below is a conceptual example.
1. sql1=”SELECT JobNo, Hours FROM tblJobs”
2. sql2=”SELECT Hours FROM qry1”
3. sql3=”SELECT HOURS FROM qry2 WHERE tblJobs.Hours >10”
This is of course an extremely simple example, and I realize I probably don’t need three queries to get this information. If you could think of a better example, please use it. Anyhow, I’m just looking for the right syntax.
Thanks in advance for the help…
Below is a conceptual example.
1. sql1=”SELECT JobNo, Hours FROM tblJobs”
2. sql2=”SELECT Hours FROM qry1”
3. sql3=”SELECT HOURS FROM qry2 WHERE tblJobs.Hours >10”
This is of course an extremely simple example, and I realize I probably don’t need three queries to get this information. If you could think of a better example, please use it. Anyhow, I’m just looking for the right syntax.
Thanks in advance for the help…