Article ID: 154758
Article Last Modified on 6/29/2004
Constant Value Description
---------------------------------------------------------------------------
dbSQLPassThrough 64 When using Data controls with an SQL statement
in the RecordSource property, sends the SQL
statement to an ODBC database, such as a SQL
Server or Oracle database, for processing.
Private Sub Form_Load()
Data1.Connect = "ODBC;DSN=DSNToPubs;" & _
";Database=pubs;" & _
"Uid=<username>;Pwd=<strong password>;"
Data1.RecordSource = "Exec byroyalty 40"
Data1.Caption = "Stored Procedure Test"
Data1.Options = Data1.Options Or dbSQLPassThrough
Data1.Refresh
Text1.DataField = "Au_ID"
End Sub
Additional query words: kbVBp400 kbVBp500 kbVBp600 kbdse kbDSupport kbVBp
Keywords: kbhowto KB154758