Good Morning,
I have been doing this for 20 years and should be able to get this.
But I can't.
I am writing an update query to update field "New Group" in table 1
BS-WOOO1864-M0024515
Where WOOO1864 is field GROUPID in table 1
and M0024515 is field PLANID in table 1
I have tried variations of
“BS-“&[GroupID]&”-”&[ PlanID]
Please assist and thank you so much for all of the help over the years.
Michael Abrams
Update Query using concatenate
-
- 4StarLounger
- Posts: 573
- Joined: 10 Feb 2010, 17:32
-
- Administrator
- Posts: 78415
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Update Query using concatenate
Access, VBA and SQL require straight quotes ", not curly quotes “ ”.
And there should always be a space before and after the concatenation operator &.
"BS-" & [GroupID] & "-" & [ PlanID]
And there should always be a space before and after the concatenation operator &.
"BS-" & [GroupID] & "-" & [ PlanID]
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 573
- Joined: 10 Feb 2010, 17:32
Re: Update Query using concatenate
Thanks HansV - works great!