Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

VB/SQL/Access2007

  • 10-09-2008 9:18am
    #1
    Closed Accounts Posts: 7


    Hi All,
    New to Access2007 and have a quick question regarding the Attachment datatype.

    I have a VB6 programme to connect to a database, and to do the usual, SELECT, INSERT INTO, UPDATE etc., I create a Connection object and
    execute SQL against it.

    Can anyone tell me if and how I can write an SQL statement to Insert a file to an Attachment field in the database table? I've looked on the web but cannot find anything about programmatically inserting from VB to specify a file/attachment?
    As in sSQL = "INSERT INTO myTable VALUES('name', 'address' ... picturefile)

    There were some resources on doing it from VBA and DoCmd. but I want to keep the application and database seperate.

    Thanks in advance.


Comments

Advertisement