G
Guest
Hi I have the following code that builds a string with an array (myArr). I
have these values in myFields of myTable. How can I adjust my code to refer
to myField instread of a static array? I think via a recordset, but not sure
how to do it.
Code
Function mySeclist()
myArr = Array("Blue", "Red","Yellow")
l = 1
For Each x In myArr
If l = 1 Then
y = x
Else
y = y & "+" & x
End If
l = l + 1
Next x
mySeclist = y
End Function
Regards,
Bruce
have these values in myFields of myTable. How can I adjust my code to refer
to myField instread of a static array? I think via a recordset, but not sure
how to do it.
Code
Function mySeclist()
myArr = Array("Blue", "Red","Yellow")
l = 1
For Each x In myArr
If l = 1 Then
y = x
Else
y = y & "+" & x
End If
l = l + 1
Next x
mySeclist = y
End Function
Regards,
Bruce