J
Jorge Ramos
Hello all,
I have a form that must be sent by email to a predetermined person once it
is completed. It is important, however, that only the current record be
sent. Is there a way to automate this by creating a Command Button? The
Access Wizard creates the following code to allow you to print the form
showing the current record. However, the Wizard it does not offer an option
to email the current record.
Private Sub Print_Current_Record_Click()
On Error GoTo Err_Print_Current_Record_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection
Exit_Print_Current_Record_Click:
Exit Sub
Err_Print_Current_Record_Click:
MsgBox Err.Description
Resume Exit_Print_Current_Record_Click
End Sub
Separately, the Access Wizard allows you to print a report. However, the
report contains all the records on the table or query and not just the
current record.
Any ideas as to how I can do this?
I have a form that must be sent by email to a predetermined person once it
is completed. It is important, however, that only the current record be
sent. Is there a way to automate this by creating a Command Button? The
Access Wizard creates the following code to allow you to print the form
showing the current record. However, the Wizard it does not offer an option
to email the current record.
Private Sub Print_Current_Record_Click()
On Error GoTo Err_Print_Current_Record_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection
Exit_Print_Current_Record_Click:
Exit Sub
Err_Print_Current_Record_Click:
MsgBox Err.Description
Resume Exit_Print_Current_Record_Click
End Sub
Separately, the Access Wizard allows you to print a report. However, the
report contains all the records on the table or query and not just the
current record.
Any ideas as to how I can do this?