Re: Dynamic SQL
Try this.
(Of course you will have to add a bit more SQL to read through your table, but this should get you started)
Code:
DECLARE @SQL as varchar(1000)
DECLARE @operator AS CHAR(1)
DECLARE @rate AS VARCHAR(10)
SET @operator = '*'
SET @rate ='12.3'
SET @SQL = 'select 5000 ' + @operator + ' ' + ...


![[2005 EE]VB-made software with VB-made database question](/images/thp_r1581.gif)
