![]() |
|
|
#1 | ||
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
PING: Microsoft Access Guru's
I am using the Interrogator built by gstelmack to automate some of my reporting process within access rather than using excel sumifs and vlookups. The problem is, is that I can't seem to get a simple query working. My query looks like this:
I am just trying to pull games played over the career here, and the result is: Why is it showing so many games played? We only have had 10 seasons, (2004 to week 6 in 2013). What am I doing wrong here?
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
||
|
|
|
|
|
#2 |
|
Death Herald
Join Date: Nov 2000
Location: Le stelle la notte sono grandi e luminose nel cuore profondo del Texas
|
You are getting a cartesian join, which means it is summing up the total games played for a player times the number of players on the team. In SQL I would know how to write the query, but Access is just enough different that it wouldn't work. You might try to put the GamesPlayed before the TeamName column and see if that helps.
__________________
Thinkin' of a master plan 'Cuz ain't nuthin' but sweat inside my hand So I dig into my pocket, all my money is spent So I dig deeper but still comin' up with lint |
|
|
|
|
|
#3 |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
Thanks for the quick reply, but that didn't work either. Still showing as playing thousands of games.
Man this is frustrating!
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
|
|
|
|
|
#4 |
|
Death Herald
Join Date: Nov 2000
Location: Le stelle la notte sono grandi e luminose nel cuore profondo del Texas
|
Do you really need the team name in the query? I think if you drop the Teams table from the query, then you'll get the results you are looking for.
__________________
Thinkin' of a master plan 'Cuz ain't nuthin' but sweat inside my hand So I dig into my pocket, all my money is spent So I dig deeper but still comin' up with lint |
|
|
|
|
|
#5 |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
Nope, I tried that too. Thanks for the suggestions though.
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
|
|
|
|
|
#6 |
|
Pro Starter
Join Date: Oct 2005
Location: Washington, DC
|
go to the "SQL" view and paste that here.
![]()
__________________
Sixteen Colors ANSI/ASCII Art Archive "...the better half of the Moores..." -cthomer5000 |
|
|
|
|
|
#7 |
|
n00b
Join Date: Aug 2007
|
I would guess the Mappings table has more than 1 row in it. From the output of the query, it doesn't look like you are using the table. Try removing it from the query to see if that helps the situation.
|
|
|
|
|
|
#8 |
|
College Starter
Join Date: Oct 2000
Location: Pittsburgh, PA
|
I think it is the mappings table that is causing the multiple counts.
__________________
"It's a great day for hockey" - "Badger" Bob Johnson |
|
|
|
|
|
#9 | |
|
Pro Starter
Join Date: Dec 2003
Location: At the corner of Beat Street and Electric Avenue
|
Quote:
Yes, please delete Mappings from the query. On top of that, please check to see if you set the relationships between the tables prior to creating the query. If neither of those work, send me a PM and I will give you my email to send it to me.
__________________
"I'm ready to bury the hatchet, but don't fuck with me" - Schmidty "Box me once, shame on Skydog. Box me twice. Shame on me. Box me 3 times, just fucking ban my ass...." - stevew |
|
|
|
|
|
|
#10 |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
Thanks all, got it to work! It was the mappings file.
Ok, so now I have a ton of queries to do all the league, career and rookie leaders and macros to import the data from the interrogator. Next question is, I used the Macros in Access and used the "Transfertext" from the drop down to import the csv's, how do I erase the contents of the table without deleting the tables in the macro? They way I have it, everytime I import it will append to the bottom and the data will grow exponentially in duplicate. How easy is it to set up an SQL to link to this Access database?
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 Last edited by gottimd : 09-22-2007 at 10:11 PM. |
|
|
|
|
|
#11 |
|
College Starter
Join Date: Oct 2000
Location: Pittsburgh, PA
|
You can use a delete query to delete all records but maintain an empty table with the same structure.
__________________
"It's a great day for hockey" - "Badger" Bob Johnson |
|
|
|
|
|
#12 |
|
H.S. Freshman Team
Join Date: Jun 2005
|
|
|
|
|
|
|
#13 |
|
H.S. Freshman Team
Join Date: Jun 2005
|
|
|
|
|
|
|
#14 |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
I am using the interrogator and importing them into a DB for now on my local computer. Now I just need help getting them online
![]()
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
|
|
|
|
|
#15 |
|
Grizzled Veteran
Join Date: Dec 2002
Location: Little Rock, AR
|
Access should generate a SQL statement for you, but you will probably need some minor changes to get it to work for the web. In Access, go to your query and then go to SQL view and paste that statement here.
__________________
Xbox 360 Gamer Tag: GoldenEagle014 |
|
|
|
|
|
#16 | |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
Current Year QB TD Passes:
Quote:
So do I just copy, import my Access DB from my local machine to the site on the network? If so, how? Its rather large with all of the queries, should I just keep a template of the three standard queries I want (Career, Rookie and League Leaders)?
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 Last edited by gottimd : 09-24-2007 at 06:59 AM. |
|
|
|
|
|
|
#17 |
|
Grizzled Veteran
Join Date: Dec 2002
Location: Little Rock, AR
|
The size is fine. Are you just making it where others can download the Access DB or you wanting to put the information on to a website?
__________________
Xbox 360 Gamer Tag: GoldenEagle014 |
|
|
|
|
|
#18 | |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
Quote:
I want to put it on our website.
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
|
|
|
|
|
|
#19 |
|
Grizzled Veteran
Join Date: Dec 2002
Location: Little Rock, AR
|
What type of programming language are you going to use?
__________________
Xbox 360 Gamer Tag: GoldenEagle014 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|