Hi Guys,
I'm having difficulty converting any numeric data from a recordset pulled from MS Access to display as a string in a text element in FTV SE. I can display it in a textbox which I can live with if really necessary but it would be 'nice' to be able to display my data through standard text. Below is an example of my code.
Using the first example it will display string fields from my recordset when called.
First I tried this:
MyBatchForm.Elements.Item("Text1").Caption = rs("BatchID")
Then I tried this:
Dim MyTest1 As Long
Dim MyTest2 As String
MyTest1 = rs("BatchID")
MyTest2 = CStr(MyTest1)
MyBatchForm.Elements.Item("Text1").Caption = MyTest2
It's just not working for me. Anyone got any ideas?
thanks
Jonny
I'm having difficulty converting any numeric data from a recordset pulled from MS Access to display as a string in a text element in FTV SE. I can display it in a textbox which I can live with if really necessary but it would be 'nice' to be able to display my data through standard text. Below is an example of my code.
Using the first example it will display string fields from my recordset when called.
First I tried this:
MyBatchForm.Elements.Item("Text1").Caption = rs("BatchID")
Then I tried this:
Dim MyTest1 As Long
Dim MyTest2 As String
MyTest1 = rs("BatchID")
MyTest2 = CStr(MyTest1)
MyBatchForm.Elements.Item("Text1").Caption = MyTest2
It's just not working for me. Anyone got any ideas?
thanks
Jonny