MS access help

Ian

Ex. Club Member
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?
 
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
 
tried doing it a long winded way?

Code:
Dim strText as String

strText = txt2.Text & txt3.Text

txt1.Text = strText
 
Back
Top