Insert data Question

N

niuginikiwi

I have browsed the discussion groups but can not find anything closer to the
question I have, thus im posting here i nthe general senction. Here is my
situation.

I have the following tables and relationships.
tblOrders and tblOrderDetails have a one-to-many relationship.
tblPlantingDetails and tblOrderDetails also have a one-to-many relationship.

I have a field in the tblPlantingDetails named CutDate of type Date/Time. I
also have a field called OrderDate in the in tblOrders.

What I want to do is programmatically insert the first OrderDate that is
related to the tblPlantingDetails through tblOrderDetails into the field
CutDate in tblPlantingDetails.

In Summary, there are several orders that use a planting record, and I want
to take the earliest possible OrderDate and populate the CutDate field in the
related related record of tblPlantingDetails.

Any kind help and thoughts on how to achieve this would be very much
appreciated.

Thanks in advance.


I create so many orders which involves a planting record
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top