Apostrophes in List Boxes

T

Terence

Hello

I need to enter student names on a Form that contain
apostrophes. These names are then populated into a List
Box. The user then scan the names in the List Box to
populate all the data relating to that name on the Form.

When the user clicks on a name with an apostrophe, the
runtime error 3077 is produced.

Any help would be greatly appreciated.
Terence
London
 
J

John Vinson

Hello

I need to enter student names on a Form that contain
apostrophes. These names are then populated into a List
Box. The user then scan the names in the List Box to
populate all the data relating to that name on the Form.

When the user clicks on a name with an apostrophe, the
runtime error 3077 is produced.

Any help would be greatly appreciated.
Terence
London

It sounds like you have code to "populate" the listbox, and that
you're delimiting the names with ' marks. Change your code to use " as
a string delimiter instead and this error should go away. Post the VBA
code you're using if this isn't clear!
 

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

Top