Hello,
Here is what I am trying to do…Not sure if it is possible:
SELECT [Activity File].[Computer Name], Sum([Activity File].[Total Time]) AS [SumOfTotal Time] INTO [ATT/IBM URL's By Computer]
FROM [Activity File]
WHERE ((([Activity File].[URL Address]) Like "*att*" Or ([Activity File].[URL Address]) Like "*ibm*"
)
GROUP BY [Activity File].[Computer Name];
Those lines will find att and ibm as a url address….That works fine, but what I also need is (logic code
If URL Address is not like att or ibm
Then URL Address is NULL
I was thinking the code should be something like this:
(if ((([Activity File].[URL Address]) Is Not = "*att*" Or ([Activity File].[URL Address])Is Not Like "*ibm*"
) Then ([Activity File].[URL Address] = NULL))
but that doesn’t work.
I need that so each computer name will have something associated with it…What is being displayed now is only those computer names which att/ibm shows up for and the total time spent in those URL’s. I need it to say something like:
Computer1 10
Computer2 0
Computer3 11
It currently only displays:
Computer1 10
Computer3 11
And it leaves out computer2…is there anyway to make it display computer2 with a value of 0?
That query saves the output to a table called ATT/IBM URL’s by Computer.
Thanks for your help.
Here is what I am trying to do…Not sure if it is possible:
SELECT [Activity File].[Computer Name], Sum([Activity File].[Total Time]) AS [SumOfTotal Time] INTO [ATT/IBM URL's By Computer]
FROM [Activity File]
WHERE ((([Activity File].[URL Address]) Like "*att*" Or ([Activity File].[URL Address]) Like "*ibm*"
GROUP BY [Activity File].[Computer Name];
Those lines will find att and ibm as a url address….That works fine, but what I also need is (logic code
If URL Address is not like att or ibm
Then URL Address is NULL
I was thinking the code should be something like this:
(if ((([Activity File].[URL Address]) Is Not = "*att*" Or ([Activity File].[URL Address])Is Not Like "*ibm*"
but that doesn’t work.
I need that so each computer name will have something associated with it…What is being displayed now is only those computer names which att/ibm shows up for and the total time spent in those URL’s. I need it to say something like:
Computer1 10
Computer2 0
Computer3 11
It currently only displays:
Computer1 10
Computer3 11
And it leaves out computer2…is there anyway to make it display computer2 with a value of 0?
That query saves the output to a table called ATT/IBM URL’s by Computer.
Thanks for your help.