Connecting Tech Pros Worldwide Forums | Help | Site Map

Text to ascii values change in summary query

Newbie
 
Join Date: Nov 2006
Location: Columbus, Ohio
Posts: 2
#1: Nov 14 '06
I'm running a simple summary query. Prior to summarizing values in three columns I get the text values (i.e., "Medicare") for column 1. If I summarize I get "䄂˜" in place of the original text values.

Using Access 2003, SP2 under WinXP

The query:
SELECT Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program, Qtr_Report_In_County01.Units
FROM Qtr_Report_In_County01
GROUP BY Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program, Qtr_Report_In_County01.Units;

Sample rows being summarized:
Memo Program Units
Medicaid Crisis Intervention 2
1st/3rd Party CSP - Child 10


I'd work-around by taking the data out to excel, but my source is > 88k rows and over the 65k limit.

tia for any leads.

Dave Ebert

Lives Here
 
Join Date: Oct 2006
Posts: 1,626
#2: Nov 14 '06

re: Text to ascii values change in summary query


Quote:

Originally Posted by debert254

I'm running a simple summary query. Prior to summarizing values in three columns I get the text values (i.e., "Medicare") for column 1. If I summarize I get "䄂˜" in place of the original text values.

Using Access 2003, SP2 under WinXP

The query:
SELECT Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program, Qtr_Report_In_County01.Units
FROM Qtr_Report_In_County01
GROUP BY Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program, Qtr_Report_In_County01.Units;

Sample rows being summarized:
Memo Program Units
Medicaid Crisis Intervention 2
1st/3rd Party CSP - Child 10


I'd work-around by taking the data out to excel, but my source is > 88k rows and over the 65k limit.

tia for any leads.

Dave Ebert

Hi Dave
Try this
SELECT Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program, SUM(Qtr_Report_In_County01.Units)
FROM Qtr_Report_In_County01
GROUP BY Qtr_Report_In_County01.Memo, Qtr_Report_In_County01.Program;
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,886
#3: Nov 15 '06

re: Text to ascii values change in summary query


Hi Dave

You've called your first field memo. Is it by any chance a memo data type. They often seem to cause problems in queries.

Other than that the main reason that ascii values get returned is because there are characters like carriage returns in the text. If you're not sure take some sample text out to notepad with the word wrap switched off it should all just appear as one line. If not then you will need to remove the line down characters. Find and replace should do it.
Newbie
 
Join Date: Nov 2006
Location: Columbus, Ohio
Posts: 2
#4: Nov 15 '06

re: Text to ascii values change in summary query


Thanks, it turns out the field was indeed a MEMO type. Changing it to text fixed my problem.

Thanks again.

Quote:

Originally Posted by mmccarthy

Hi Dave

You've called your first field memo. Is it by any chance a memo data type. They often seem to cause problems in queries.

Other than that the main reason that ascii values get returned is because there are characters like carriage returns in the text. If you're not sure take some sample text out to notepad with the word wrap switched off it should all just appear as one line. If not then you will need to remove the line down characters. Find and replace should do it.

msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,886
#5: Nov 15 '06

re: Text to ascii values change in summary query


Quote:

Originally Posted by debert254

Thanks, it turns out the field was indeed a MEMO type. Changing it to text fixed my problem.

Thanks again.

You're welcome.
Reply