D
Douglas J. Steele
Tony Toews said:They are?
See what Allen Browne's got at http://www.allenbrowne.com/subquery-01.html
Now that I've seen it, I like Jamie's terminology of "derived tables".
Tony Toews said:They are?
See what Allen Browne's got at http://www.allenbrowne.com/subquery-01.html
Now that I've seen it, I like Jamie's terminology of "derived tables".
David W. Fenton said:What do you mean by "virtual table"?
SELECT tbl1.field1, vt.field2
FROM tlb1 INNER JOIN [SELECT tbl2.field2 FROM tbl2 WHERE ...]. AS
vt
Because of the []. AS syntax, you can't have brackets inside
there.
You can get around it for a while by using parentheses in some
later versions of Access (2000 and later) but if you save the
query it does get altered to brackets and you end up with the
problem, anyway.
I don't have spaces in table or field names. In query, form and
reports I do. So this isn't a problem for me.
I must admit I've never quite comfortable with the sub queries as
you are using above so I don't use them. I know I should but
never have.
Yeah, that what I usually call them too (although technically
subqueries are a little different)
See what Allen Browne's got at
http://www.allenbrowne.com/subquery-01.html
Now that I've seen it, I like Jamie's terminology of "derived
tables".
David W. Fenton said:Are you assuming that one only ever uses tables and never any
queries in these virtual tables?
Well, if your queries have spaces in the names, it would make it
pretty much impossible, which would be something to generate
discomfort, no doubt.
I do have the situation where I have a report selection criteria
form with a bunch of combo, list boxes, date ranges and such. I
start off with a combo box of all the report names that start with
the word "user". Once the user selects the form I then enable the
controls appropriate for that report. So yes I do occasionally
present such a list but I want the list of report names to be user
readable so spaces work in that situation.
(BTW I have a table that maps control names on reports to control
names on that form. So when I update a report or add a new report
I run a bunch of code which analyzes the reports control source
queries. This then enables/disables the controls on the above
mentioned form.)
To each thier own.
But if you don't remember what the object is named but you DO
prefix queries with "qry" you STILL have to choose from amongst
all of the objects so prefixed. How do you do that unless you
already know what you are looking for? Do you just pick the one
that seems to jog your memory?
Seems to me that one should figure out exactly which object they
need (to the point of examining its design) before they go picking
it from some list.
What does "snarky" mean?
David W. Fenton said:It seems to me that you make more problems for yourself than you
solve. To me, having to use brackets all the time is *much* worse of
a maintenance issue than translating the coder-friendly names into
human-friendly names.
Problem solved for both users and coders, and without needing to
maintain a translation table or extra properties -- all you'd need
to do is follow your naming conventions and camel case everything at
each word break.
Tony Toews said:Don't bother with the tbl prefix. Basically it's a waste of time.
I don't. Let's stick with Microsoft terminology.
David W. Fenton said:But that terminology doesn't distinguish this particular type of
subquery from all the others, and I think it needs a name, as it's
doing something very different from the others, seems to me.
Gina Whipp said:You forgot.... For Freak's Sake (polite term)
Yes, that's the term I was trying to come up with.
Not at all. If it was a PITA putting in square brackets then I would
have noticed. It's not.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.