Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - SubQueryInFROM.mdb ( beginner )
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Please consider donating $1 per sample downloaded, (find out why here)

SubQueryInFROM.mdb ( beginner )

 Post Reply Post Reply
Author
Message
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 249
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: SubQueryInFROM.mdb ( beginner )
    Posted: 21 Jul 2008 at 10:38pm
 
Please consider donating $1 per sample downloaded, find out why here.
 
SubQueryInFROM.mdb
 
Demonstrates how to use a subquery in the FROM clause of a query. There is a seriously weird, undocumented format for using a subquery in the From clause - essentially as another table. It won't work if you have spaces or special characters in the names of tables or fields (which I don't like anyway). Because of the syntax, *this* sort of subquery cannot itself contain a subquery of the same format. The syntax is: [insert your query here]. As SomeAlias The left and right square brackets are required, the dot after the right bracket is required, and the As and alias are required. You can't do ANYTHING that would require the use of square brackets, inside the square brackets - that's why no spaces or special characters in names. **Thanks to Don Edwards for sharing this**
 
Download
Access 2000 (24 KB):
uploads/5/SubQueryInFROM2k.zip
Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down