Executing SQL in outlook VBA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jawad Ali
    New Member
    • Sep 2007
    • 2

    Executing SQL in outlook VBA

    Hi,

    I wan't to execute sql statements on the SQL Server in local intranet using outlook VBA Code.

    Same in VB is done using ADODB Object but how to go about in VBA??
  • BlackMustard
    New Member
    • Aug 2007
    • 88

    #2
    Originally posted by Jawad Ali
    Hi,

    I wan't to execute sql statements on the SQL Server in local intranet using outlook VBA Code.

    Same in VB is done using ADODB Object but how to go about in VBA??
    You will have to import a reference library called "Microsoft ActiveX Data Objects 2.x Library", and then you can do as in regular vb (define connection and execute with sql parameter)

    Comment

    Working...