How to remove Barcode Prifix and Suffix

E

Ed Dror

Hi There,

Im using 2D barcode on the internet and
When I scan the barcode the first record in my form start with {some text
And the last record end like sometext}

How do I remove these two characters { } ?

Thanks,
Ed Dror
 
J

John W. Vinson

Hi There,

Im using 2D barcode on the internet and
When I scan the barcode the first record in my form start with {some text
And the last record end like sometext}

How do I remove these two characters { } ?

Thanks,
Ed Dror

You can run an Update query updating the field to

Replace(Replace([fieldname], "{", ""),"}", "")

or - perhaps more efficiently - an Update query such as

UPDATE tablename
SET fieldname = Mid([fieldname], 2, Len([fieldname]) - 1))
WHERE fieldname LIKE "{*}";


John W. Vinson [MVP]
 
E

Ed Dror

John,

Thanks, It works

Ed Dror

John W. Vinson said:
Hi There,

Im using 2D barcode on the internet and
When I scan the barcode the first record in my form start with {some text
And the last record end like sometext}

How do I remove these two characters { } ?

Thanks,
Ed Dror

You can run an Update query updating the field to

Replace(Replace([fieldname], "{", ""),"}", "")

or - perhaps more efficiently - an Update query such as

UPDATE tablename
SET fieldname = Mid([fieldname], 2, Len([fieldname]) - 1))
WHERE fieldname LIKE "{*}";


John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to choose the right event ? 2
Barcode suffix & Prefix 5
Barcode reader 1
Capturing barcode input 2
Access HELP NEEDED: MS ACCESS OPTION GROUP 0
Barcode Input 3
ASP.Net and Barcode Scanner 2
Barcode Identifier 3

Top