missprogrammer
Programmer
This query is running but it is not retuning a value.
Is there something wrong with my "having" clause
It returns a value when I just have the Round(intRound) alone, but when I include the Region(strRegion) it does not return any value. What am I doing wrong?
Dim intRound As Integer
Dim strRegion As String
WsRecordset.Open _
Source:="SELECT Count(dbo_F2KCube_Calls.CallID) " & _
"FROM db
utletProgram INNER JOIN dbo_F2KCube_Calls " & _
"ON db
utletProgram.OutletID = dbo_F2KCube_Calls.OutletID " & _
"WHERE (((dbo_F2KCube_Calls.Status) = 'e' Or (dbo_F2KCube_Calls.Status) = 'f') AND ((db
utletProgram.ProgramID)=12))" & _
"GROUP BY db
utletProgram.CustomChar5, dbo_F2KCube_Calls.CallCost " & _
"HAVING dbo_F2KCube_Calls.CallCost = " & intRound & " And db
utletProgram.CustomChar5 = '&strRegion&';"
Is there something wrong with my "having" clause
It returns a value when I just have the Round(intRound) alone, but when I include the Region(strRegion) it does not return any value. What am I doing wrong?
Dim intRound As Integer
Dim strRegion As String
WsRecordset.Open _
Source:="SELECT Count(dbo_F2KCube_Calls.CallID) " & _
"FROM db
"ON db
"WHERE (((dbo_F2KCube_Calls.Status) = 'e' Or (dbo_F2KCube_Calls.Status) = 'f') AND ((db
"GROUP BY db
"HAVING dbo_F2KCube_Calls.CallCost = " & intRound & " And db