Can I select from multiple tables/queries in a single SQL statement?
For example:
SELECT [this], [that], [otherThing]
FROM qryThis, qryThat, tblOtherThing
Does this work only with Jet, or does SQL just work like this?
The specific problem I'm trying to solve is compiling a RecordSource for a
report that includes a formatted Name-Address block that looks like
something like this:
Mr. John Person
1234 South Street
Anytown, CA 96723
In the below SQL statement, [qryNameAddressBlock] gathers all the address
info (as [Block]) with the help of a function to skip any blank lines and
insert carriage returns in the right place.
SELECT [tblTxJournal].[Amount], DateValue([tblTxJournal].[TxDate]) AS
InvoiceDate, [tblTxJournal].[Entity_ID], [tblTxJournal].[Tx_ID],
[qryNameAddressBlock].[Block] AS Customer
FROM tblTxJournal, qryNameAddressBlock
WHERE ([tblTxJournal].[Tx_ID] = 12504);
Will this work if the database is upsized to SQL Server?