G
Guest
On a form, I have declared public variables for current (old) values in the
controls and also edited (new) values. There are manipulated through code
behind the form correctly.
After a save record on the form, I send a report by email that tells the
client that revisions to the record on the form have changed.
In OnOpen event on the report I have some if statements to print the old and
new values on the report if they differ, e.g.(or i.e.)
If gstrPARTNoOld <> gstrPARTNoNew Then
Me.txtPartNoNew = gstrPARTNoNew
Me.txtPartNoOld = gstrPARTNoOld
End If
I have stepped through the code and the values for the public variables are
not shuffling from the form over to the report. The form is still open
although it has lost focus as the report is in preview mode. What am I
forgetting to do?
controls and also edited (new) values. There are manipulated through code
behind the form correctly.
After a save record on the form, I send a report by email that tells the
client that revisions to the record on the form have changed.
In OnOpen event on the report I have some if statements to print the old and
new values on the report if they differ, e.g.(or i.e.)
If gstrPARTNoOld <> gstrPARTNoNew Then
Me.txtPartNoNew = gstrPARTNoNew
Me.txtPartNoOld = gstrPARTNoOld
End If
I have stepped through the code and the values for the public variables are
not shuffling from the form over to the report. The form is still open
although it has lost focus as the report is in preview mode. What am I
forgetting to do?