Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine two field contents to one variable

Status
Not open for further replies.

8441

Technical User
May 9, 2001
54
0
0
GB
I have two fields on a form. Duty_Name and Duty__Location. I want to combine the contents of both of these fields (text) into a variable called DutyDetails. I will then insert DutyDetails into a seperate table from the one that the form is linked to called Vehicle Booking.

I can do the insert part but I can't think of a way of combining the contents of these two fields to the one variable in my code.

Has anyone any ideas? Help greatly appreciated.

Craig
 
Hi,

You can use the ampersand symbol & to concatenate strings together in code.

Thus:
DutyDetails = DutyName & " " & DutyLocation

John
 
Exactly what i need.

Many thanks.

craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top