I created a Word form with formfields from which data is loaded into Access through VB. The load works fine except that the text form fields are loading one garbage char (ASC13) at the end of non-null text loaded or full of garbage if text is blank from Word.
I have written VB code in Access to strip out the garbage after the load is done. I do two separate function calls; one to look for ASC13 as the last char and another to look for the entire value being garbage.
My code looks at each field in each table and it is a lot of VB code, even with using function calls, and not very efficient. But it does work.
Does anyone know a better way to handle stripping out the garbage characters? If I could fix the data as it is being loaded, that would be really great, like I use nz and trim as data is loaded. I have reviewed past posts and tried the replace function but couldn't "identify" the garbage character to get the replace to work.
Thanks.
Alexis
I have written VB code in Access to strip out the garbage after the load is done. I do two separate function calls; one to look for ASC13 as the last char and another to look for the entire value being garbage.
My code looks at each field in each table and it is a lot of VB code, even with using function calls, and not very efficient. But it does work.
Does anyone know a better way to handle stripping out the garbage characters? If I could fix the data as it is being loaded, that would be really great, like I use nz and trim as data is loaded. I have reviewed past posts and tried the replace function but couldn't "identify" the garbage character to get the replace to work.
Thanks.
Alexis