I've been trying to work this one out myself, and I just figured out that you have to .movelast before you recordcount to find out how many records you have! I really need some help, though - because I have to nest my loops and I just can't figure it out.
1) click event on a form button - got it
2) query to see if there are inventory dates after the invoice date on the form, list ASC - got it
3) I need go through each inventory in order, and there is a tblinventory with a tblinventory_detail. The inventory dates retrieved from the above query are in tblinventory, and the inventory items i need to run through are in tblinventory_detail. For each inventory item i need to run through an if statement that I already have written.
I can't figure out how to loop through the dates, creating a recordset for the inventory date that you are on in the loop, and loop through the items in the inventory, .edit and .update(ing) them. Help please! I'm still studying this, but I'm stuck. Please let me know if I've not been clear.
Thank you so much for reading this far!
Jennifer
1) click event on a form button - got it
2) query to see if there are inventory dates after the invoice date on the form, list ASC - got it
3) I need go through each inventory in order, and there is a tblinventory with a tblinventory_detail. The inventory dates retrieved from the above query are in tblinventory, and the inventory items i need to run through are in tblinventory_detail. For each inventory item i need to run through an if statement that I already have written.
I can't figure out how to loop through the dates, creating a recordset for the inventory date that you are on in the loop, and loop through the items in the inventory, .edit and .update(ing) them. Help please! I'm still studying this, but I'm stuck. Please let me know if I've not been clear.
Thank you so much for reading this far!
Jennifer