How to pass variable to @dbcommand

How to pass the variable instead of static value to @dbcommand? eg. @dbcommand(“ODBC”;dns;userid;password;“SELECT column from table where value = ‘1234’”), how can I use the variable (or field name) to replace the static ‘1234’?

Thanks in advance

Subject: Try this…

value := “1234”;@dbcommand(“ODBC”;dns;userid;password;“SELECT column from table where value = '” + value + “'”)

Subject: RE: How to pass variable to @dbcommand

@dbcommand(“ODBC”;dns;userid;password;“SELECT column from table where value = '” + fieldname + “'”)

Assuming it’s a text field – otherwise you have to @Text it.

Subject: How to pass variable to @dbcommand

Works perfect!!!

Thanks a lot

Kevin