Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    20

    How would you store this?

    I am going out and importing data (Pdfs, Xls, Doc, Txt)....then I convert it to Base64 (called strData below). If the original was about 150K or less then I can save the converted file (about 250K characters) into a memo field. However, if the original is larger than that then the code gives me "run-time error '2498': An expression you entered is the wrong data type for one of the arguments".

    Any suggestions how to save the larger files????

    sSQL = "Insert Into tblAttachment(AttachmentDetail) Select '" & strData & "';"
    DoCmd.RunSQL sSQL

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Use a memo field

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

Similar Threads

  1. Proper way to store Names
    By trb5016 in forum Database Design
    Replies: 5
    Last Post: 08-22-2010, 10:16 AM
  2. How to store inventory properties?
    By tuna in forum Database Design
    Replies: 1
    Last Post: 08-05-2010, 01:02 AM
  3. How do I get dlookup values to store in table
    By rpmyhero in forum Access
    Replies: 1
    Last Post: 11-25-2009, 05:57 AM
  4. Pizza store database help!
    By zagorette in forum Database Design
    Replies: 2
    Last Post: 06-30-2009, 10:47 AM
  5. Replies: 0
    Last Post: 09-25-2006, 03:42 AM

Tags for this Thread

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