Hi, I am trying this code;
To build up a string to show in a MsgBox for the user. Basically what I want the loop to do is;
name = Me.comboContact1.Column(1)
...
name = Me.comboContact2.Column(1)
...
name = Me.comboContact3.Column(1)
Hope you guys can help me out!
Cheers
Code:
Dim i As Integer
Dim usrMsg, vname, phone As String
For i = 1 To 3
vname = Me.comboContact & i.Column(1)
phone = DLookup("[Phone]", "tblContact", "[Name]=" & SQLstring(vname))
usrMsg = usrMsg & vname & ": " & phone & vbNewLine
Next i
MsgBox usrMsg, vbInformation, "Contacts"
name = Me.comboContact1.Column(1)
...
name = Me.comboContact2.Column(1)
...
name = Me.comboContact3.Column(1)
Hope you guys can help me out!

Cheers