I
Istari
I'd like to insert the result of an SQL query into a text field on a form.
My problem is that although my SQL works perfectly, the text control is
being updated with the actual Statement as opposed to the result. I'm sure
this must be something really silly that I'm overlooking.
my code looks as follows:
Dim sRateName As String
sRateName = "SELECT [RateTypes].[RateName]" & _
"FROM Rates INNER JOIN RateTypes ON
[Rates].[RateTypeID]=[RateTypes].[RateTypeID]" & _
"WHERE [Rates].[RateID] = " & Me.RateID
Me.AccBasisText = sRateName
My problem is that although my SQL works perfectly, the text control is
being updated with the actual Statement as opposed to the result. I'm sure
this must be something really silly that I'm overlooking.
my code looks as follows:
Dim sRateName As String
sRateName = "SELECT [RateTypes].[RateName]" & _
"FROM Rates INNER JOIN RateTypes ON
[Rates].[RateTypeID]=[RateTypes].[RateTypeID]" & _
"WHERE [Rates].[RateID] = " & Me.RateID
Me.AccBasisText = sRateName