A
AMN
Hi,
I have an expression with two variables that I would like to run multiple
times (10 times) to result in 10 different strings. Here is some details:
'Variable "stX" is a string and "Y" is a field in a different table.
I would like to run the following expression:
Private Sub UpdateMemo_Click ()
Dim stHeader as string
stX = DLookUp ([Y], "Table", MRN = Me.MRN)
If Not stX = "" Then
stX = VbNewLine & stX
stHeader = "List:"
Else
stX = " "
End If
If Not stHeader = "" Then
Me.Memo = stHeader & st1 & st2 & ... & st10
End If
End Sub
How do I do this? Your help is very much appreciated.
Thanks,
I have an expression with two variables that I would like to run multiple
times (10 times) to result in 10 different strings. Here is some details:
'Variable "stX" is a string and "Y" is a field in a different table.
I would like to run the following expression:
Private Sub UpdateMemo_Click ()
Dim stHeader as string
stX = DLookUp ([Y], "Table", MRN = Me.MRN)
If Not stX = "" Then
stX = VbNewLine & stX
stHeader = "List:"
Else
stX = " "
End If
If Not stHeader = "" Then
Me.Memo = stHeader & st1 & st2 & ... & st10
End If
End Sub
How do I do this? Your help is very much appreciated.
Thanks,