Concatenate Variables

J

John

Is there a way to concatenate a variable as part of a form caption.

eg.
me.caption=forms.frmPat.txtname & variablename

Please help
Thanks
 
N

Newbie

yes

strName = "This is a variable"
Me.Caption = Forms!frmVar!txtVar.Value & " " & strName

This assumes that frmVar is a separate form in which a value is entered

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top