C
Clare
I have a forum with 2 subforms containing information about external
examiners, fees, expenses and the course and college they are responsible for.
There are a number of standard letters which have to be sent out to each
external, for example confirmation that the exam report has been recieved and
the fees will be paid, request for the exam report if it's late.
Currently someone puts into the database the date the fee and expenses
request and exam report were received and how much they want. Then the
standard letter is filled in from word by hand. Reports and expense claims
come in a few at a time over a period of a few months two or three times a
year and the number is increasing rapidly. I would ideally like to automate
this somehow.
I would like to be able to create a report which fills in the externals
address, the course they are the external for, the college, the amount of fee
and the expenses they are claiming, just for the record that is showing in
the form. Some sort of a handy button for each standard letter. I have had a
browse through the internet and this forum and may have found the answer in
this code
Private Sub cmdPrint_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[ID] = " & Me.[ID]
DoCmd.OpenReport "MyReport", acViewPreview, , strWhere
End If
End Sub
My question is this. As the report will be filling in spaces in a letter is
there any way of sending this one letter to a mailmerge word document that is
fairly simple for the data inputer? As the fields course title and college
will vary considerably in length if I just use a standard access report there
could be some rather large gaps which could look strange in a letter. In a
mailmerge however everything all around would shrink or grow to accommodate
this.
Would this be a simple operation? If might have to change the layout and
text of the letter to accommodate the difference in length for the different
fields.
examiners, fees, expenses and the course and college they are responsible for.
There are a number of standard letters which have to be sent out to each
external, for example confirmation that the exam report has been recieved and
the fees will be paid, request for the exam report if it's late.
Currently someone puts into the database the date the fee and expenses
request and exam report were received and how much they want. Then the
standard letter is filled in from word by hand. Reports and expense claims
come in a few at a time over a period of a few months two or three times a
year and the number is increasing rapidly. I would ideally like to automate
this somehow.
I would like to be able to create a report which fills in the externals
address, the course they are the external for, the college, the amount of fee
and the expenses they are claiming, just for the record that is showing in
the form. Some sort of a handy button for each standard letter. I have had a
browse through the internet and this forum and may have found the answer in
this code
Private Sub cmdPrint_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[ID] = " & Me.[ID]
DoCmd.OpenReport "MyReport", acViewPreview, , strWhere
End If
End Sub
My question is this. As the report will be filling in spaces in a letter is
there any way of sending this one letter to a mailmerge word document that is
fairly simple for the data inputer? As the fields course title and college
will vary considerably in length if I just use a standard access report there
could be some rather large gaps which could look strange in a letter. In a
mailmerge however everything all around would shrink or grow to accommodate
this.
Would this be a simple operation? If might have to change the layout and
text of the letter to accommodate the difference in length for the different
fields.