XL7: SQL PassThrough Example in Help Has Incorrect Example

ID: Q140702


The information in this article applies to:
  • Microsoft Excel for Windows 95, version 7.0


SUMMARY

In Data Access Object (DAO) Reference Help, the "Using SQL PassThrough with DAO" topic contains an incorrect code example under the "To create and execute an SQL pass through query from code" heading.


MORE INFORMATION

The incorrect code example reads:


   Set dbs = OpenDatabase("Salary.mdb" _
        dbs.Connect = "ODBC;dsn=Accounting;uid=Dagny;"& _
        pwd=Bandit;database=Payroll;"
   dbs.Execute "Update UPDATE Employees SET Salary = Salary * 1.1;", _
        dbSQLPassThrough 
The correct syntax for this example is shown below:

   Set dbs = OpenDatabase("Salary.mdb")
   dbs.Connect = "ODBC;dsn=Accounting;uid=Dagny;" & _
        "pwd=Bandit;database=Payroll;"
   dbs.Execute "UPDATE Employees SET Salary = Salary * 1.1;", _
        dbSQLPassThrough 


STATUS


REFERENCES

For more information about Using SQL PassThrough With DAO, choose the Index tab in Help and type:

sql, pass-through queries

Additional query words:

Keywords :
Version : Win95:7.0
Platform : Win95
Issue type :


Last Reviewed: January 6, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.