![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thank you so much for your help, Rich! Okay, I found what you are talking about and it looks like the report is based on a querry because when I clicked on the name of it (Yearly Donations Received), it took me to a Query Builder page. I took a screenshot of what it looks like and can email if that helps. Nichole |
#5
| |||
| |||
|
| Re: Access problem |
#6
| |||
| |||
|
|
Now that you have located the query -- what you can do is this -- which would be a little bit easier than emailing. *Go To the query tab in the Access window. *If you don't see the Access window (the window with option listings for Tables, Queries, Reports, Modules, ...) Press the F11 key on your keyboard. *This will bring up the Access window. *Now click on the Query option and select the query name (from your report). Open this query in design view. *Now go to the file menu at the top of the page and go to the View menu and click on Sql View. *This displays the sql code for the query. *Highlight this code and copy it. *Then in your reply to this message paste the code there, and we can analyze it for you. Rich |
#7
| |||
| |||
|
| You guys are such great help! Thank you! When I went to my list of queries, as you said to do, I noticed some interesting things. The first is that there are two queries with similar names. The first is the one that the report is drawing from and is called "Yearly Donations Received Querry Query," created & modified in 2005 and another called "Yearly Donations Received Querry," created in 2004 and modified in 2006. (The last secretary left here in 2004...) WHY? I don't know...but both included all the data I had been entering for each week's tithe. When in datasheet view, neither one contained the duplicate entries. The only difference between the two (besides the bad spelling of their names) is the SQL code. This is what the code looks like for the query the report actually draws from, "Yearly Donations Received Querry Query": SELECT [Yearly Donations Received Querry].[Name], [Yearly Donations Received Querry].[Donation Type], [Yearly Donations Received Querry]. [Donation Amount], [Yearly Donations Received Querry].[Donation Date] FROM [Yearly Donations Received Querry]; And this is what the code looks like for the other query "Yearly Donations Received Querry": SELECT [Yearly Donations Received].Name, [Yearly Donations Received]. [Donation Type], [Yearly Donations Received].[Donation Amount], [Yearly Donations Received].[Donation Date], [Yearly Donations Received].[Mailing Address], [Yearly Donations Received].City, [Yearly Donations Received].State, [Yearly Donations Received].Zip FROM [Yearly Donations Received] GROUP BY [Yearly Donations Received].Name, [Yearly Donations Received]. [Donation Type], [Yearly Donations Received].[Donation Amount], [Yearly Donations Received].[Donation Date], [Yearly Donations Received].[Mailing Address], [Yearly Donations Received].City, [Yearly Donations Received].State, [Yearly Donations Received].Zip; I don't think it's necessary for both to exist. So if I can fix the one to show the duplicate date & amount entries, I should be able to delete the other, right? I feel kinda silly talking about things I know hardly anything about, buy you guys are helping me understand bits & pieces and I'm doing my best to explain it clearly. Thanks again! |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Now that you have located the query -- what you can do is this -- which would be a little bit easier than emailing. Go To the query tab in the Access window. If you don't see the Access window (the window with option listings for Tables, Queries, Reports, Modules, ...) Press the F11 key on your keyboard. This will bring up the Access window. Now click on the Query option and select the query name (from your report). Open this query in design view. Now go to the file menu at the top of the page and go to the View menu and click on Sql View. This displays the sql code for the query. Highlight this code and copy it. Then in your reply to this message paste the code there, and we can analyze it for you. Rich You guys are such great help! Thank you! When I went to my list of queries, as you said to do, I noticed some interesting things. The first is that there are two queries with similar names. The first is the one that the report is drawing from and is called "Yearly Donations Received Querry Query," created & modified in 2005 and another called "Yearly Donations Received Querry," created in 2004 and modified in 2006. (The last secretary left here in 2004...) WHY? I don't know...but both included all the data I had been entering for each week's tithe. When in datasheet view, neither one contained the duplicate entries. The only difference between the two (besides the bad spelling of their names) is the SQL code. This is what the code looks like for the query the report actually draws from, "Yearly Donations Received Querry Query": SELECT [Yearly Donations Received Querry].[Name], [Yearly Donations Received Querry].[Donation Type], [Yearly Donations Received Querry]. [Donation Amount], [Yearly Donations Received Querry].[Donation Date] FROM [Yearly Donations Received Querry]; And this is what the code looks like for the other query "Yearly Donations Received Querry": SELECT [Yearly Donations Received].Name, [Yearly Donations Received]. [Donation Type], [Yearly Donations Received].[Donation Amount], [Yearly Donations Received].[Donation Date], [Yearly Donations Received].[Mailing Address], [Yearly Donations Received].City, [Yearly Donations Received].State, [Yearly Donations Received].Zip FROM [Yearly Donations Received] GROUP BY [Yearly Donations Received].Name, [Yearly Donations Received]. [Donation Type], [Yearly Donations Received].[Donation Amount], [Yearly Donations Received].[Donation Date], [Yearly Donations Received].[Mailing Address], [Yearly Donations Received].City, [Yearly Donations Received].State, [Yearly Donations Received].Zip; I don't think it's necessary for both to exist. So if I can fix the one to show the duplicate date & amount entries, I should be able to delete the other, right? I feel kinda silly talking about things I know hardly anything about, buy you guys are helping me understand bits & pieces and I'm doing my best to explain it clearly. Thanks again! |
#10
| |||
| |||
|
|
Hi Nichole, I am starting to see what is going on here. *It looks like the original query was doing the totalling (Group By Clause in the old query) and then the report was displaying the resulting dataset in the report viewer. *The newer query is shorter because the part that did the totalling (the Group By section of the 1st query) was removed and most likely, the totalling (Grouping) is now being done in the report itself -- Reports have a Totals feature I will explain later. *In the meantime, it looks like the newer query (the 2nd query) displays all the rows entered but they get totalled (Grouped) in the report. *So now I suggest you try the following: * In the query design view of the 2nd (newer - shorter) query - click on the Run button (the Red exclamation symbol near the top middle of the page). *This will run the query manually. *Look at the resulting dataset and see if it includes the records you say are missing. *I will wager that you WILL see the missing records here. *In that case - the fix will be to make some adjustments in the report. *But first lets see if your missing records show up in the query when you run it straight from the query Designer. *And then let us know. * Note: if the query is taking paramertes (which it doesn't sound like it) you will get a prompt to enter some values. *Read the title of the prompt if this happens and you should know what values to enter. *But it doesn't sound like the query is taking parameters. Rich *** Sent via Developersdexhttp://www.developersdex.com*** |
![]() |
| Thread Tools | |
| Display Modes | |
| |