smk2 said:
Can you define a pass-through query from a form's query grid (the same way you do regular pass-throughs)?
In other words, I don't want the query in the list of queries, but rather attached to the form. When I define the pass-through from the SQL view of the form query grid, I open properties and there is no place to establish the ODBC connection.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Your remarks are not very clear. SQL Pass-through queries (SPTs) are in
..mdb files. I believe you are using an .adp file, 'cuz you are saying
the SQL statement is visible at the same time the query grid is visible.
This is only possible in MS SQL Server (and .adp queries).
So,
In .adp files there are no SPTs since all the
queries/procedures/functions/views are stored on the SQL server and the
ODBC connection is part of the .adp file (the
CurrentProject.Connection).
.... in .mdb files you'd do this:
If you want to save the SQL you've already created: copy the SQL
statements to the clipboard (Ctrl-C) before doing the following. When
the query is in design view, from the main menu select Query > SQL
Specific > Pass-Through. If you have the QBE grid displayed the view
will change to the SQL view. Anything you'd created before designating
the query as a pass-thru query would be wiped-out. You'll have to type
in the SQL statement, or paste [Ctrl-V] the SQL you copied to the
clipboard. Note: JET SQL statements don't always work in MS SQL'r -
different dialect.
To see the ODBC connection string: on the main menu bar click View >
Properties. The Properties dialog box will appear. One of the
properties is the "ODBC Connect Str." That is where you'd place the
connection string (obviously).
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQIQvk4echKqOuFEgEQJ8WQCgk2NuG+6MRQQkaYzsm9Ug8LCSEyIAniCy
yPLadXhR0J1CwLTgDnNP6I0C
=5S8G
-----END PGP SIGNATURE-----