I Ian Ex. Club Member May 1, 2006 #1 Can anyone tell me how to concatinate 2 fields on a report using VBA? been ages since i done VBA so i tried txt1.text = "txt2.text" & txt3.text" but i must be doing something wrong, anyone any ideas?
Can anyone tell me how to concatinate 2 fields on a report using VBA? been ages since i done VBA so i tried txt1.text = "txt2.text" & txt3.text" but i must be doing something wrong, anyone any ideas?
James Chairman May 1, 2006 #2 Code: txt1.Text = txt2.Text & txt3.Text No quotes I don't think Unless you want a gap between the two in which case its Code: txt1.Text = txt2.Text & " " & txt3.Text
Code: txt1.Text = txt2.Text & txt3.Text No quotes I don't think Unless you want a gap between the two in which case its Code: txt1.Text = txt2.Text & " " & txt3.Text
James Chairman May 1, 2006 #4 tried doing it a long winded way? Code: Dim strText as String strText = txt2.Text & txt3.Text txt1.Text = strText
tried doing it a long winded way? Code: Dim strText as String strText = txt2.Text & txt3.Text txt1.Text = strText
OP OP I Ian Ex. Club Member May 1, 2006 #7 maybe, ill try. I hate VBA its so fiddly, VB is FAR better :s
R rlees85 Ex. Club Member May 1, 2006 #9 is it not just txt2? Code: txt1 = txt2 & txt3 or Code: txt1 = txt2 & " " & txt3