Results 1 to 7 of 7
  1. #1
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26

    Cannot see attachment datatype in creating table

    Hi all,



    I am creating table and i want to place attachment file with using attachment datatype but I can't see attachment datatype when I create table.

    Please help me. Why?

    Thanks and Regards,

    Dodo

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    I believe that field type introduced with Access 2007.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26
    Hi,

    I got stuck with wirting sql in vba access.

    Here is my code:

    Dim sqlstr As String
    sqlstr = "select id from tblstaff "
    DoCmd.RunSQL

    Pls correct me. Thanks

  4. #4
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26
    Here is my code:

    Dim sqlstr As String
    sqlstr = "select id from tblstaff "
    DoCmd.RunSQL sqlstr

    still not correct. got error

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    RunSQL (or CurrentDb.Execute) only works with SQL actions (INSERT, UPDATE, DELETE).

    SELECT sql is used to open a recordset object in VBA.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26
    Hi, thanks alot.

    But Can you give me example please?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Why do you need to open a recordset?

    What do you really need to accomplish?

    Review:

    http://support.microsoft.com/kb/148361

    http://allenbrowne.com/ser-29.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 8
    Last Post: 05-11-2012, 04:41 PM
  2. issue changing datatype in table
    By Gareth Keenan in forum Access
    Replies: 3
    Last Post: 09-27-2011, 02:57 PM
  3. datatype mismatch in criteria expression
    By CyberSkillsz in forum Access
    Replies: 1
    Last Post: 06-14-2011, 10:56 AM
  4. Binary datatype
    By huBelial in forum Access
    Replies: 1
    Last Post: 04-04-2011, 02:02 PM
  5. confusing datatype error issue
    By TheShabz in forum Queries
    Replies: 5
    Last Post: 10-11-2010, 05:14 PM

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