Re: Access Project 2002 Passing Parameters to a Query
From: Van T. Dinh (VanThien.Dinh_at_discussions.microsoft.com)
Date: 09/21/04
- Next message: Dirk Goldgar: "Re: When typing stops, record saves automatically"
- Previous message: Brendan Reynolds: "Re: Open Form With Record Selector - Still Having Problem"
- In reply to: CLM: "Re: Access Project 2002 Passing Parameters to a Query"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 00:23:48 +1000
Don't worry about those @ things!
I wrote that your Query / View / SQL String is *not* parametrised as you
constructed the SQL String (by code) using explicit value so the @ thing is
not applicable.
Since you use ADP, the SQL String is handled by the SQL Server engine, not
Access, your SQL String must follow the syntax of T-SQL, espe cially on
delimiting Text and Data *explicit* values. For example, in JET SQL, you
can use either single-quote or double-quote as String delimiter but in
T-SQL, you can only use sigle-quote. Delimiting explit date values in T-SQL
is rather different than JET SQL (#-delimited). You will need to check
B.O.L. for the correct T-SQL data syntax.
-- HTH Van T. Dinh MVP (Access) "CLM" <CLM@discussions.microsoft.com> wrote in message news:361A3DA0-7233-401B-AD81-B7C5696DFE7C@microsoft.com... > OK so I am on the write track, but last night I attempted to use the > AFterChange event to assign the txtAcct to the @AcctNum and it didn't like it > very much. Is there a reference I should be setting or is my syntax way off > the mark? > > Thx, > > CLM >
- Next message: Dirk Goldgar: "Re: When typing stops, record saves automatically"
- Previous message: Brendan Reynolds: "Re: Open Form With Record Selector - Still Having Problem"
- In reply to: CLM: "Re: Access Project 2002 Passing Parameters to a Query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|