I have a "Copy" button which copies current donor information on my Parent form to a "Gift History" subform using the following relevant programming:
var nn as int
nn = @formnewrecord("Gift History")
formfieldvalue("Gift History", "LE0", nn, receipt date)
formfieldvalue("Gift History", "Gift", nn, current gift)
formfieldvalue("Gift History", "Check #", nn, check number1)
formfieldvalue("Gift History", "Receipt Name", nn, receipt name)
formfieldvalue("Gift History", "Receipt #0", nn, nextNumStr)
For first time donors, (ie no previous entries in the subform for an individual parent form, I'm using natural linking), an additional blank record is added. If I click on this record or leave the parent form and come back (F10, F9), the blank record records the date but everything else remains blank. If there are already records on the subform however, this isn't a problem.
Any ideas about this?
I appreciate y'alls help... just working on a little project for my parents over Christmas break.