Ampersands within records

  • Thread starter Thread starter mcheng
  • Start date Start date
You can use Instr([YourField], Chr(37)) to find position of '%' in the string.
 
Jet does not give a special meaning to & embedded in a string.


CurrentDb.Execute "INSERT INTO companies(f1) VALUES( 'A & P') "

will insert a new record in table companies, with "A & P" as value (under
the field f1), without prompting for a parameter for P.




Hoping it may help,
Vanderghast, Access 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

Back
Top