B
Brian P. Hammer
Hi all,
I have an app that creates about 125 textboxes on a form. The names are stored in a SQL table. In that same table, I have formulas for some of the textboxes to perform simple math operation. My problem is that when the form is created, it puts the formula in the text instead of performing the formula. For example, CInt(Text1.Text) + CInt(Text2.Text) is displayed instead of adding the two textboxes.
Dim strSQL1 As String = "SELECT FieldName, Formula FROM tblFormula WHERE FieldName = " & strFieldName
rsFormula.ActiveConnection = cnn
rsFormula.CursorType = CursorTypeEnum.adOpenStatic
rsFormula.Open(strSQL1)
rsFormula.MoveFirst()
myText(i).Text = rsFormula.Fields("Formula").Value
rsFormula.Close()
Any ideas?
Thanks,
I have an app that creates about 125 textboxes on a form. The names are stored in a SQL table. In that same table, I have formulas for some of the textboxes to perform simple math operation. My problem is that when the form is created, it puts the formula in the text instead of performing the formula. For example, CInt(Text1.Text) + CInt(Text2.Text) is displayed instead of adding the two textboxes.
Dim strSQL1 As String = "SELECT FieldName, Formula FROM tblFormula WHERE FieldName = " & strFieldName
rsFormula.ActiveConnection = cnn
rsFormula.CursorType = CursorTypeEnum.adOpenStatic
rsFormula.Open(strSQL1)
rsFormula.MoveFirst()
myText(i).Text = rsFormula.Fields("Formula").Value
rsFormula.Close()
Any ideas?
Thanks,