I am trying to read an sql table, store Efficiency field value based on the Cellnum value. The stored field will populate a java param field
SQL TABLE
CellNum Cell Efficiency
SqlOP = "SELECT Efficiency,Cellnum,Cell from Efficiency"
'------------OPEN UP DATABASE AND RUN QUERY
conOP.open "dsn=Dashboard","xx","xx"
'Static, Readonly, Command
rsOP.open sqlOP, conOP, 3, 1, 1
The table is very small 20 records and I need to select store the value in efficiency based on the cellnum.
If rs("Cellnum"
= 66 Then
SmallMachop = rs("Efficiency"
else
If rs("Cellnum"
= 36 Then
SmallAssop = rs("Efficiency"
Java param
<param name="g3value" value="<%= SmallMachop%>">
<param name="g2value" value="<%= SmallAssop%>">
Is this the correct syntax. Is this the even the correct way to do this? Any help would be greatly appreciated. Happy Holidays
SQL TABLE
CellNum Cell Efficiency
SqlOP = "SELECT Efficiency,Cellnum,Cell from Efficiency"
'------------OPEN UP DATABASE AND RUN QUERY
conOP.open "dsn=Dashboard","xx","xx"
'Static, Readonly, Command
rsOP.open sqlOP, conOP, 3, 1, 1
The table is very small 20 records and I need to select store the value in efficiency based on the cellnum.
If rs("Cellnum"
SmallMachop = rs("Efficiency"
else
If rs("Cellnum"
SmallAssop = rs("Efficiency"
Java param
<param name="g3value" value="<%= SmallMachop%>">
<param name="g2value" value="<%= SmallAssop%>">
Is this the correct syntax. Is this the even the correct way to do this? Any help would be greatly appreciated. Happy Holidays