I am trying to set a string to show up in a textbox.
I DIMed the string as
Public Sub Tons()
Dim SumofBusTEUS As String
SumofBusTEUS = "SELECT Sum(tblTestData.SumOfTEUS) AS SumOfSumOfTEUS " _
& " FROM tblTestData WHERE (((([tblTestData].[#BUSRULE])) Is Not Null)) "
End Sub
Then in the control source to the textbox I did
=(SumofBusTEUS)
What I am missing causing this not to work??