A
accessbuilder30 via AccessMonster.com
I've switched from Access 2003 to Access 2007. I have fields called
CompanyName, Address, and Phone that I would like to have in seperate lines
in a single textbox and display them on a report. I used the following vb
code in Access 2003.
Private Function strFullAddress() As String
strFullAddress = CompanyName & vbNewline & Address and vbNewLine & Phone
End Function
The control source for the textbox is set to =strFullAddress()
In Access 2003, everything worked fine. In Access 2007, I get a error message.
I've tried every way I can think of to make this thing work, but it won't
work. What am I doing wrong?
Thanks
CompanyName, Address, and Phone that I would like to have in seperate lines
in a single textbox and display them on a report. I used the following vb
code in Access 2003.
Private Function strFullAddress() As String
strFullAddress = CompanyName & vbNewline & Address and vbNewLine & Phone
End Function
The control source for the textbox is set to =strFullAddress()
In Access 2003, everything worked fine. In Access 2007, I get a error message.
I've tried every way I can think of to make this thing work, but it won't
work. What am I doing wrong?
Thanks