G
Guest
hi,
I have the following query:
strSQL2 = "SELECT [1calltotals2RJUNE130].ResolvedStatus, " _
& "[1calltotals2RJUNE130].ResolvedDt,
Sum([1calltotals2RJUNE130].[SumOfSumOfnumber of calls]) " _
& "AS [SumOfSumOfSumOfnumber of calls],
Sum([1calltotals2RJUNE130].[SumOfCountOfLoan Acct #]) " _
& "AS [SumOfSumOfCountOfLoan Acct #],
Sum([1calltotals2RJUNE130].average_no_calls_to_be_resolved) " _
& "AS SumOfaverage_no_calls_to_be_resolved, " _
& "[SumOfSumOfSumOfnumber of calls]/[SumOfSumOfCountOfLoan Acct #] AS Expr1
" _
& "INTO 1calltotals2Rjune130_finaltemp " _
& "FROM 1calltotals2RJUNE130 " _
& "WHERE ((([1calltotals2RJUNE130].ResolvedStatus) =
[Forms]![frm_criteria]![tester1])) " _
& "GROUP BY [1calltotals2RJUNE130].ResolvedStatus,
[1calltotals2RJUNE130].ResolvedDt; "
'make a table showing average number of calls for resolvedstatus selected at
runtime
DoCmd.RunSQL strSQL2
I would like to show a messagebox that lists how many records the preceding
pasted...perhaps a count of how many records there are in the new table. I
do not want to use the default "is about to paste N records into a new
table... do you want to continue?" because I turned the warnings off.
How can I achieve this?
Thanks in advance,
geebee
I have the following query:
strSQL2 = "SELECT [1calltotals2RJUNE130].ResolvedStatus, " _
& "[1calltotals2RJUNE130].ResolvedDt,
Sum([1calltotals2RJUNE130].[SumOfSumOfnumber of calls]) " _
& "AS [SumOfSumOfSumOfnumber of calls],
Sum([1calltotals2RJUNE130].[SumOfCountOfLoan Acct #]) " _
& "AS [SumOfSumOfCountOfLoan Acct #],
Sum([1calltotals2RJUNE130].average_no_calls_to_be_resolved) " _
& "AS SumOfaverage_no_calls_to_be_resolved, " _
& "[SumOfSumOfSumOfnumber of calls]/[SumOfSumOfCountOfLoan Acct #] AS Expr1
" _
& "INTO 1calltotals2Rjune130_finaltemp " _
& "FROM 1calltotals2RJUNE130 " _
& "WHERE ((([1calltotals2RJUNE130].ResolvedStatus) =
[Forms]![frm_criteria]![tester1])) " _
& "GROUP BY [1calltotals2RJUNE130].ResolvedStatus,
[1calltotals2RJUNE130].ResolvedDt; "
'make a table showing average number of calls for resolvedstatus selected at
runtime
DoCmd.RunSQL strSQL2
I would like to show a messagebox that lists how many records the preceding
pasted...perhaps a count of how many records there are in the new table. I
do not want to use the default "is about to paste N records into a new
table... do you want to continue?" because I turned the warnings off.
How can I achieve this?
Thanks in advance,
geebee