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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,213,567
Messages
6,114,342
Members
448,570
Latest member
rik81h

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