After many hours spent trying to post to a subform, I must suggest that there is a bug somewhere.
I am simply using a buttonon the parent form to copy data from an element on the parent form to an element on the subform. USUALLY, the data copies to the subform, but it always puts it in the wrong elements!!!!! The programming is simple:
FormFieldValue("LineItems", "action", 1, action) FormFieldValue("LineItems", "quality", 1, quality) FormFieldValue("LineItems", "pattern", 1, pattern)
Just to be safe, I have deleted and re-created the LineItems database and all the elements use the same name for Label, Name, and "Bound to" field, just to save confusion. The names are all the same on the parent form, as well. ALso, all the fields are text fields on both parent and subform.
For what its worth, I also have a button that does the reverse and it works flawlessly!
Stock no = @formfieldvalue("lineitems", "stock no", 1) quality = @formfieldvalue("lineitems", "quality", 1) pattern = @formfieldvalue("lineitems", "pattern",1)
Please help before I throw my computer into the neighbors yard!
Steve
|