This may be a bit of an oversimplification but assuming there are multiple controls or paragraphs to setup is it more efficient to use calculations or Literals in code...
Alternately the below control source may be used.
The real issue arises in that there are permutations of "Some Text" or TextField that have to be accounted for.
I have been told that the former methodology is faster. I am not sure I am convinced but it is no trivial matter to test so I was hoping for a few good opinions.
These report nuances is just something I have not had to play with before.
Then I was not sure about FormatCount, would it be appropriate to only set values on the first pass which if I understood what I read correctly is 0?
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me!TheControl = "Some Text " & Me!PipeIn1 & "Some More Text"
End Sub
Alternately the below control source may be used.
Code:
=Replace(TextField, "<PipeIn1>", PipeIn1)
The real issue arises in that there are permutations of "Some Text" or TextField that have to be accounted for.
I have been told that the former methodology is faster. I am not sure I am convinced but it is no trivial matter to test so I was hoping for a few good opinions.
These report nuances is just something I have not had to play with before.
Then I was not sure about FormatCount, would it be appropriate to only set values on the first pass which if I understood what I read correctly is 0?
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If FormatCount = 0 Then
Me!TheControl = "Some Text " & Me!PipeIn1 & "Some More Text"
End If
End Sub