vba application using access database BAD CHARACTER

RAYLWARD102

Well-known Member
Joined
May 27, 2010
Messages
524
I have an access database who's content populates from our accounting database.
My excel VBA application manipulates the Access data for label printing.
I have an issue when paragraph marks appearing in my Access data (rarely). I actually cannot see the character until the data is dropped into forms.Label.caption.
The character is likely coming from when the accounting software field is populated with data followed by someone pressing 'enter' key within same field.
When I look through table data; cannot see this character. If I perform an sql query looking for this character I cannot find this character.
I've tried replace(Some_Data_with_bad_character, chr(244),"") when loading the Forms.Label.caption; doesn't work!
The reason why I want this character gone is the users try to print label with this character and it screws up the process. I need to automatically remove this unwanted character from my access database.

search
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Leith Ross

Well-known Member
Joined
Mar 17, 2008
Messages
1,874
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
Hello RAYLWARD102,

Is the character the pilcrow mark ¶ or some other character? I ask because the ANSI/Unicode value for the pilcrow is 182. The character for code 244 on my system is a lower case O with a circumflex ô.
 

Derek Brown

Well-known Member
Joined
Dec 26, 2005
Messages
2,390
I wonder if the CLEAN function will solve your problem?
That function removes non-printable characters.
 
Last edited:

Forum statistics

Threads
1,141,707
Messages
5,707,980
Members
421,539
Latest member
zuniBM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top