G
Guest
Hi - I am comfortable using Access to run basic queries, but have had a lot of
trouble getting equivalent functionality in Access to match what I do every
day in Excel. Here is the scenario:
I have a dataset with the following attributes:
User Acct. # TimeConnected Timeout
aa 111 1 0
bb 222 1 0
cc 333 2 0
dd 444 5 0
aa 111 2 0
ee 555 1 0
cc 333 30 1
ff 666 1 0
ff 666 4 0
gg 666 1 0
In Excel, I then take this list, run a filter to give me all unique users,
show their associated account number (can have multiple users on an account,
or a 1:1 relationship),
and then sum how many times that user showed up in the list, as well as how
many times the account shows up in the list (in the event that many users
from the same account appear), the total time connected, avg. time connected,
and the sum of how many timeouts occurred.
Again, this is simple in Excel. However, in Access, when I try to create a
query to calculate the appropriate fields, I can calculate only one field
when I 'Group By' user and acct#, and then every additional 'COUNT' function
appears the same as the previous one. If I try an even more complicated
query and join to another table with additional information about the user, I
start getting very odd results.
Can someone please point me in the right direction on how to get the first
part of this issue resolved, and then I'll tackle the joined tables issue?
Thanks,
Don
trouble getting equivalent functionality in Access to match what I do every
day in Excel. Here is the scenario:
I have a dataset with the following attributes:
User Acct. # TimeConnected Timeout
aa 111 1 0
bb 222 1 0
cc 333 2 0
dd 444 5 0
aa 111 2 0
ee 555 1 0
cc 333 30 1
ff 666 1 0
ff 666 4 0
gg 666 1 0
In Excel, I then take this list, run a filter to give me all unique users,
show their associated account number (can have multiple users on an account,
or a 1:1 relationship),
and then sum how many times that user showed up in the list, as well as how
many times the account shows up in the list (in the event that many users
from the same account appear), the total time connected, avg. time connected,
and the sum of how many timeouts occurred.
Again, this is simple in Excel. However, in Access, when I try to create a
query to calculate the appropriate fields, I can calculate only one field
when I 'Group By' user and acct#, and then every additional 'COUNT' function
appears the same as the previous one. If I try an even more complicated
query and join to another table with additional information about the user, I
start getting very odd results.
Can someone please point me in the right direction on how to get the first
part of this issue resolved, and then I'll tackle the joined tables issue?
Thanks,
Don