I have a field tx_Value which I want to use in some Detail_Format event.
However if I try using:
I get an error msg "Method or Data Menber not found"
If I try either of these
I simply get a printed "Error" in my report, no error msg.
I have a textbox in my report with controlsource=s trTenderDoc()
(The "real" code I want to run is a bit more complicated, but im stumped at accessing the value of tx_Value, so ive simplified the problem to look at that.
Now, I know I can access the tx_Value if I were to make a textbox tb_Value, with the controlsource tx_Value, and just tb_Value in my code. However, I would prefer not to have to make 4 hidden textboxes if it could be avoided.
So how can I access a field from my recordset within the detail_Format, without adding it as a textbox?
However if I try using:
Code:
Me.tx_Value
If I try either of these
Code:
me.recordset.tx_Value me.recordset!tx_Value
I have a textbox in my report with controlsource=s trTenderDoc()
Code:
Private Function strTenderDoc() As String
strTenderDoc = Me.Recordset!tx_Value
End Function
Now, I know I can access the tx_Value if I were to make a textbox tb_Value, with the controlsource tx_Value, and just tb_Value in my code. However, I would prefer not to have to make 4 hidden textboxes if it could be avoided.
So how can I access a field from my recordset within the detail_Format, without adding it as a textbox?
Comment