Results 1 to 4 of 4
  1. #1
    fucell26 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Saudi Arabia
    Posts
    11

    attachement

    hi access gurus!



    im having a problem with my database in attachement field. im trying to attached a PDF file with has a name "O&M procedure" but when im trying to attach it, access give me error

    "the file name contains one more invalid characters" which is i think the "&" character. just want to ask if there is a way to allowed this. i mean access will ignore the file name specially those characters.

    please help.


    thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    From help:

    Names cannot contain the following characters: question marks (?), quotation marks ("), forward or backward slashes (/ \), opening or closing brackets (< >), asterisks (*), vertical bars or pipes (|), colons (, or paragraph marks (¶).

    which doesn't mention the &, but would imply there is no way around the restriction if you were trying one of those.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I think Windows is OK with the ampersands ever since the NTFS file format. It is VBA that does not like it. Perhaps the Replace() function to change out & with _ or something.

    I suppose you could do a lot of fancy foot work to display attachment names as they were originally. If we are talking about attachment fields, why do you need to use them? Why not just store the files on a server and their paths in a plain Jane Text Field.

  4. #4
    fucell26 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Saudi Arabia
    Posts
    11
    sorrry for late reply. but you are correct i just use hyperlink to attached file using form.

    thanks to all who reply.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 08-07-2013, 02:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums