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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding () into SELECT query. help

Status
Not open for further replies.

wadey

Programmer
Jun 6, 2006
54
GB
1 table, 2 fields. 1 row.

In SQL Server the following statement in VB produces this result:-

Query - "SELECT [Field1] + '(' + [Field2] + ')' as FieldConcat FROM table1"

Result - FieldConcat = FieldRec1(FieldRec2)

Whats the MS Access version of this please ?

Regards
 
lcQuery =
"SELECT [Field1] & '(' & [Field2] & ')' as FieldConcat FROM table1 "

should work... hthw,


Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top