I have a form that is associated with a table of course.
I have a radio button called: chg_hw and a date field called: expIECD
I have code that generates a date in the expIECD field. I have another field called: aprv_date.
I have a report called: rpt_expIECD_HW
I need to generate code to send email if a condition is met.
The code I have for doing this is as follows:
Private Sub Command12_Click()
If chg_hw.Value = True And Me!expIECD = DateAdd("d", 110, Me!aprv_date) Then
DoCmd.SendObject acSendReport, "rpt_expIECD_HW", acFormatSNP, "email@test.com",,, strSubject, "The attached is being sent.", True
End If
End Sub
The problem I am having I need for this part of the code to check every record in the database: Me!expIECD = DateAdd("d", 110, Me!aprv_date). The code only works if I click on the record that meets this criteria, and it only puts that record in the SNP file in the email.
I need it to automatically check every record and add those records to the SNP file.
Does anyone know how can I modify the code to generate this?
Any help will be SURELY appreciated.
Thanks in advance,
Jerome Benton
JERPAT Web Designs
GOD Is Good All The Time!!!
I have a radio button called: chg_hw and a date field called: expIECD
I have code that generates a date in the expIECD field. I have another field called: aprv_date.
I have a report called: rpt_expIECD_HW
I need to generate code to send email if a condition is met.
The code I have for doing this is as follows:
Private Sub Command12_Click()
If chg_hw.Value = True And Me!expIECD = DateAdd("d", 110, Me!aprv_date) Then
DoCmd.SendObject acSendReport, "rpt_expIECD_HW", acFormatSNP, "email@test.com",,, strSubject, "The attached is being sent.", True
End If
End Sub
The problem I am having I need for this part of the code to check every record in the database: Me!expIECD = DateAdd("d", 110, Me!aprv_date). The code only works if I click on the record that meets this criteria, and it only puts that record in the SNP file in the email.
I need it to automatically check every record and add those records to the SNP file.
Does anyone know how can I modify the code to generate this?
Any help will be SURELY appreciated.
Thanks in advance,
Jerome Benton
JERPAT Web Designs
GOD Is Good All The Time!!!