Article ID: 119112
Article Last Modified on 11/7/2003
ODBCConnectStr = "odbc;dsn=texas;Username=<username>;PWD=<strong password>;database=playpen"
SELECT TempTbl.* FROM TempTbl
Sub Command1_Click ()
Dim db As database
Dim qd As querydef
'open the database and querydef objects
Set db = OpenDatabase("c:\access2\db1.mdb")
Set qd = db.OpenQueryDef("PassThrough")
MsgBox "A GP Fault will occur on the next line"
'This line is where the GP Fault will occur
Print qd.SQL
MsgBox "If you see this, you chose Ignore or the GP Fault did not
occur"
'clean up
qd.Close
db.Close
End Sub
Additional query words: 3.00 ssvc
Keywords: kbprb KB119112