Hello, I have had this little 'nuisance' in my database since 2005.
I have a form for a purchase order and a subform to hold the items being purchased. I put this database into service 06/16/2005, and that was the day of the first purchase order. The form's default value for ETA is current date + 14 days. I then change the ETA field later when I know what it is for sure. In this case, the first purchase order had a ETA delivery date of """06/24/2005""".
In the subform, I have the ETA for each part default to the ETA from the purchase order. I can then change each individual ETA line items if necessary.
The subform's default value for ETA is;
=[Forms]![v2 - PMS Purchase Orders - Main Form]![ordEta]
This works pretty much as it is supposed to work. Every new line item in the subform automatically fills in with the purchase order's default date that was calculated.
And now here is where it gets 'interesting'.
On many occasions when items were added to a purchase order, the default value for the line item gets entered by default of 06/24/2005. Yep, the very first purchase order's ETA date that was calculated. I have never figured out why. But today, I found a way to duplicate this calculating and now need help on how to eradicate it and have the subform grab the correct date.
If I put the purchase order FORM into Datasheet view, then scroll down to a purchase order I want to work with, right click to open that purchase order, it will open the purchase order and subform for the line items, and there it is. The subform has somehow grabbed the ETA date for the next available line item from the very first purchas order ever written.It should have grabbed the ETA date from The Current FORM I have open.
Can you tell from my default value for the subform's code;
=[Forms]![v2 - PMS Purchase Orders - Main Form]![ordEta]
... why it would grab the ETA from the the first purchase order, and not use the ETA field from the 'CURRENT' purchase order I am working on and have open?
I would appreciate a little help on this one. It is one of those little peskies that don't do a lot of harm in the application, but is very annoying.
Thank you for reading,
Tim