Creating an email application that has a form and a report. The form has the email code in an OnClick event of a button. the emails I wand to send out must have a serial number on them, so I created a report with a textbox named valCouponSerno. In the form is the following code
Dim serNo As Long
serNo = 1
'------Processing loop-----------------
rptCoupon!valCouponSerNo.Value = serNo 'Initialize Serial Number
Do While mailRs.EOF = False
I want to bump the serial number each time through the loop.
Problem is I can't set the initial serial no (here it's 1) in the text box on the report. The report will sent as an attachment.
Been all over including in here to no avail. Tried dozens of variations including opening the form and setting focus to the textbox.
Thanks
jpl
Dim serNo As Long
serNo = 1
'------Processing loop-----------------
rptCoupon!valCouponSerNo.Value = serNo 'Initialize Serial Number
Do While mailRs.EOF = False
I want to bump the serial number each time through the loop.
Problem is I can't set the initial serial no (here it's 1) in the text box on the report. The report will sent as an attachment.
Been all over including in here to no avail. Tried dozens of variations including opening the form and setting focus to the textbox.
Thanks
jpl