vba application using access database BAD CHARACTER

RAYLWARD102

Well-known Member
Joined
May 27, 2010
Messages
529
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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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 ô.
 
Upvote 0
I wonder if the CLEAN function will solve your problem?
That function removes non-printable characters.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

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
Back
Top