Re: Problem with FROM Clause in Query
- From: "Terry Kreft" <terry.kreft@xxxxxxxxx>
- Date: Sat, 19 Nov 2005 22:44:11 -0000
Lyle,
The SQL I worked on was the one the OP had compounded to get rid of the
original query, I don't believe this is the one they stated was working in
Access I think the OP was referring to the first statements with respect to
this. In summary they aren't saying the SQL worked in Access and therefore
aren't saying the [] delimiter worked.
[] used to delimit a sub-query; I've not seen this before so I tested it, I
can't get it to work without error in either Access as a query or ADO, in
both cases an error is returned i.e.
"The Microsoft Jet database engine cannot find the input table or query
'SELECT * FROM YourTable'.
Make sure it exists and that its name is spelled correctly."
BTW 'SELECT * FROM YourTable' is the subquery text held in t [].
--
Terry Kreft
"lylefair" <lylefairfield@xxxxxxx> wrote in message
news:1132404454.682756.226590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Terry
>
> I'm confused.
>
> In JET, I have used
>
> [some select string]. AS name
>
> to effect subqueries in SQL strings
>
> for a long time. (I didn't invent this by any means, but I may have
> championed it).
>
> I believe that in T-SQL we can just use
>
> (some select string) AS name
>
> OP states that the query with []. AS name does work in Access.
>
> So, can I assume that there is something in OP's post which indicated
> he's not sending this query string to JET in his .NET application
> (maybe it's just that: ".NET"?), or does .NET send ANSI SQL to JET and
> []. As name isn't allowed there or what?
>
> I'm confused.
>
> Oh, I already said that.
>
> OK, I'm very confused!
>
.
- Follow-Ups:
- Re: Problem with FROM Clause in Query
- From: David W. Fenton
- Re: Problem with FROM Clause in Query
- From: lylefair
- Re: Problem with FROM Clause in Query
- References:
- Problem with FROM Clause in Query
- From: mollyf
- Re: Problem with FROM Clause in Query
- From: Terry Kreft
- Re: Problem with FROM Clause in Query
- From: lylefair
- Problem with FROM Clause in Query
- Prev by Date: Re: Am confused as to what Date = Date + 1 means?
- Next by Date: Re: Add a Class property dynamically at run-time
- Previous by thread: Re: Problem with FROM Clause in Query
- Next by thread: Re: Problem with FROM Clause in Query
- Index(es):
Relevant Pages
|
|