G
Guest
I posted this question in Forms Coding but couldn't get it answered. Probably
my fault for not explaining properly. Here is what I am trying to do. With
the results I am going to use the SendObject method to send the result info
to different users. All I want to do is dump text in an email message...no
attachments. This I can do. I am having trouble getting the results though.
I have a table "Jobs" and a table that is related to it "Orders". Each job
may have many orders. I want to create a seperate email for each job listing
associated with outstanding orders. I cannot figure out the syntax and always
get confused with looping.
Here is an example of what I need:
Loop through jobs with orders
Debug.print JobNumber
debug.print each OrderNumber associated
with this job
EG
RESULT 1:
Job 1000
Order 1
Order 3
Order 17
RESULT 2:
Job 1375
Order 4
Order 8
RESULT 3:
Job 2567
Order 17
Order 32
Order 52
etc.
Thanks
my fault for not explaining properly. Here is what I am trying to do. With
the results I am going to use the SendObject method to send the result info
to different users. All I want to do is dump text in an email message...no
attachments. This I can do. I am having trouble getting the results though.
I have a table "Jobs" and a table that is related to it "Orders". Each job
may have many orders. I want to create a seperate email for each job listing
associated with outstanding orders. I cannot figure out the syntax and always
get confused with looping.
Here is an example of what I need:
Loop through jobs with orders
Debug.print JobNumber
debug.print each OrderNumber associated
with this job
EG
RESULT 1:
Job 1000
Order 1
Order 3
Order 17
RESULT 2:
Job 1375
Order 4
Order 8
RESULT 3:
Job 2567
Order 17
Order 32
Order 52
etc.
Thanks