Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2010, 05:49 AM
sthorne1271 sthorne1271 is offline
Junior Member
 
Join Date: Feb 2009
Location: Westport, NY
Posts: 10
Question concatenate string and variable

I am trying to use an INSERT command to add a row to an Access table. What I want is a string inserted that will contain a variable value in the middle.

INSERT INTO tbl_my_table (LOG_MSG, MSG_ID) VALUES ('error in step $msg_value$ occurred',$msg_id$)

The query runs fine, but it does not pick up the value of the variable $msg_value$. I tried different ways of concatenating values, but no luck.

thanks
Steve
Reply With Quote
  #2 (permalink)  
Old 04-02-2010, 06:07 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Please try this,

. Create a user variable say $ErrMsg$.
. Using String Manipulation command assign 'error in step $msg_value$ occurred' to $ErrMsg$.
.Use $ErrMsg$ in Insert command like this,

INSERT INTO tbl_my_table (LOG_MSG, MSG_ID) VALUES ($ErrMsg$,$msg_id$)

Hope this helps.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 08:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved