View Single Post
  #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