winsa said:
Hi Chris2
Thanks again for replying to my post.
Again, I think I’m having more problems with the query rather than the SQL
as I don’t know what I’m doing with the SQL behind the query that I'm trying
to create, hence why I posted in this discussion, not the SQL
discussions.
This topic *is* about JET SQL. The QBE Grid is a GUI shell that
*makes* JET SQL. The QBE grid is, by and large, quite difficult to
explain in written terms (even if it is useful for certain tasks). MS
Access books use lots of pictures for that subject, and they need to.
What I really want to do is update a field in one table with the data in a
field of another table. When I tried to create the update query in the QBE
pane, I got the message that I can't update more than one table. This
procedure works fine in an mdb, but since I'm trying to work in an adp, I'm
getting errors.
I hunted around and found the code below, without the ALTER PROCEDURE line.
When I tried to run this, the QBE window disappeared and I got what I assume
is an SQL window (?) instead of the QBE window as Access couldn’t display the
query and the ALTER PROCEDURE line was added.
You are running into an artifact of the interface between MS Access
and the SQL Server itself.
JET SQL: MS Access' dialect of the SQL relational database query
language.
Transact-SQL: MS SQL Server's dialect of the SQL relational database
query language.
SQL Server has something called Stored Procedures (and so to many
other major database products). These are collections of Transact-SQL
statements stuck together, and "wrappered" with an interface to the
outside world. The procedure may be called by using its name and the
correct calling syntax. It's pre-compiled, and security controlled.
In many respects, it's like an MS Access QueryDef (only with more
bells and whistles). I believe an Access Project lets you create
stored procedures on the attached database.
If you're going to do an Access Project, you will *need* to know
Transact-SQL, or the type of thing you've run into with the & bitwise
operator will continue to strike.
Sincerely,
Chris O.