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

Update Query Adding "*" to a field

Status
Not open for further replies.

chubby

Programmer
Apr 28, 2001
278
0
0
US
I'm trying to add "*" the beginning and ending of a field that contains 1233 record.

Field: comparment
Table: tbl_compartment listing
Update to: *
Criteria: At the begining and end of each record

Example: 4-77-0-C
What I need *4-77-0-C*
 
i think its someting like, sure if its + or &

update tbl_compartment set listing=('*' + listing + '*') where id=something
 
I'm using the QBE and I try this and it did not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top