There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox firewall freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook outlook 2007 popups power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Data Is Being Scrambled


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
coachdan32's Avatar
Computer Specs
Senior Member with 1,000 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
05-Feb-2004, 11:44 AM #1
Question Data Is Being Scrambled
I have a very weird problem. I have a report that is malfunctioning. A SQL statement is pulling data from my DB and is being "Grouped By" city. All of the cities totals are perfect, except one (Des Moines). It is listed twice in the recordset, despite being spelled exactly the same. There is one city that has been omitted from the dataset (Los Angeles). The data is weekly totals broken down week to week. Upon closer review, I found that the first 2 weeks of both Des Moines rows are identical and are the actual correct numbers for Des Moines. But weeks 3 and 4 are different when comparing the 2 Des Moines rows. The second Des Moines row has totals that actually match the Los Angeles data in weeks 3 and 4. The same SQL statement is pulling the data for all cities and the table is being populated dynamically from the SQL statement. Does anyone have any idea why the data might be getting scrambled? [File is attached]
Attached Files
File Type: txt rptpoasnatlwks.txt (15.1 KB, 51 views)
__________________
CoachDan
http://www.malehsbaseball.com

Gateway Pentium 4 3.0 GHz
200G Sata HD
800 FSB
512 DDR
DVD +-R/W
XP Home
coachdan32's Avatar
Computer Specs
Senior Member with 1,000 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
09-Feb-2004, 11:24 AM #2
Nobody has any guesses on this? I am not finding anything, need help!!
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
09-Feb-2004, 12:45 PM #3
Assuming you're using lookup tables for the city; i.e. the name of the city is not in the data but a code referring to a code in another table linked to the city name; there may be a duplicate entry for Des Moines in the lookup table with leading or trailing spaces on it -- making it non-distinct and having a different city code assigned to it. If you're not using a lookup table for the city, verify that there are no leading or trailing spaces in the city column in your data. Based on what you're saying, it looks like you have some data out of whack with the Des Moines / LA connection.
coachdan32's Avatar
Computer Specs
Senior Member with 1,000 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
09-Feb-2004, 02:53 PM #4
The lookup table assumption is correct, but there is only 1 Des Moines entry and there is a Los Angeles entry too. They both do not have spaces at the end or beginning. Both cities have data in the StdtProdAS table that should be reported.

I know this is a stupid observation because the db does not care, but it seems coincidental that both cities involved are 2 word cities with 3 letter words as the first. I know realistically the db doesn't care if you enter your ABC's there as long as it matches the datatype, but it's just weird that all the others (1 word cities) work just fine. I think it's possessed - know any demonic encantations to exorcise db hobgoblins?

But, seriously, if you have any other suggestions - I would love to here them because I am at my wits end on this one.
__________________
CoachDan
http://www.malehsbaseball.com

Gateway Pentium 4 3.0 GHz
200G Sata HD
800 FSB
512 DDR
DVD +-R/W
XP Home
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
09-Feb-2004, 07:50 PM #5
I wish I did know some incantation that would magically solve database problems. There are days that I would sell my soul for some answers.

That is a bit odd that both the cities that you are having trouble with have two words in them. (Does San Francisco work? San Diego? Las Cruces?)

What language are you working in and what kind of access method are you using? Also, what report software are you working with? Would you be able to send me a sample of your work? I would keep it in strict confidentiality but I understand intellectual property too so if you can't that's fine.
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
09-Feb-2004, 07:51 PM #6
BTW: have you tried replacing the space in the name of the city with an underscore? Just wondering the the database engine or the report generator are having trouble with the space in the middle.
coachdan32's Avatar
Computer Specs
Senior Member with 1,000 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
10-Feb-2004, 09:13 AM #7
I am given pretty primitive tools to work with. They supply me with FrontPage or Notepad to use for an editor, and no tool for debugging. The db is Access and no reporting tool. The language being used is vbscript. The file is attached on the first post - I'm not sure what other code you might need, but I am willing to provide any you feel may help.
__________________
CoachDan
http://www.malehsbaseball.com

Gateway Pentium 4 3.0 GHz
200G Sata HD
800 FSB
512 DDR
DVD +-R/W
XP Home
coachdan32's Avatar
Computer Specs
Senior Member with 1,000 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
10-Feb-2004, 11:24 AM #8
Tried using the underscore and it didn't make any difference.
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
10-Feb-2004, 08:19 PM #9
I'm sorry but what I know about the reporting embedded in Access could be written on the back of a postage stamp.

However, don't you have to have a saved query to run the report? If so, if you run the query from the Access interface, does the same thing happen? I wouldn't think the results would differ but then again, I don't really know.

Sorry I can't be more help.
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
10-Feb-2004, 08:25 PM #10
Try http://www.dbforums.com

Some really knowledgeable people there who I'm sure can give you more help than I.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:53 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.