H
hdsjunk
I have a combo box containing all database records on my form that the user
can select from. When a selection is made I move the focus to a Store Name
field where I use the DoCmd.FindRecord method to move to the record selected
in the combo box. Here is the specific code:
DoCmd.FindRecord cboMbrNbr.Column(1)
However, this does not work for any records where an apostrophe exists
within the store name. I have tried using the Replace function to change the
apostrophe to either Chr(180) or 2 single quotes, but neither worked. I also
notice if I try to use the Find/Replace dialog box for the same store name,
it doesn't find it either. Anyone help would be greatly appreciated.
Thanks!
can select from. When a selection is made I move the focus to a Store Name
field where I use the DoCmd.FindRecord method to move to the record selected
in the combo box. Here is the specific code:
DoCmd.FindRecord cboMbrNbr.Column(1)
However, this does not work for any records where an apostrophe exists
within the store name. I have tried using the Replace function to change the
apostrophe to either Chr(180) or 2 single quotes, but neither worked. I also
notice if I try to use the Find/Replace dialog box for the same store name,
it doesn't find it either. Anyone help would be greatly appreciated.
Thanks!