View Single Post
  #10  
Old November 5th, 2009, 09:31 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Show all records

"Jacques Latoison" Jacques Latoison at hotmail dot com wrote in message
...
The SQL view shows what you typed, but the graphical portrays it as two
seperate fields.

SELECT tblAccts.AccountID, tblAccts.AccountType, tblAccts.BankName,
tblAccts.AccountNumber, tblAccts.BankRoutingNumber,
tblTransactions.AccountID, tblTransactions.TransType,
tblTransactions.CheckNu, tblTransactions.TransDate,
tblTransactions.TransactionID, tblTransactions.DateCleared,
tblTransactions.PayeeID, tblTransactions.TransDesc,
tblTransactions.Withdrawal, tblTransactions.Deposit,
tblTransactions.ClearedOnline, tblTransactions.ClearedOnStatement,
tblTransactions.Taxable, tblTransactions.TransNote,
tblTransactions.TransProb
FROM tblAccts INNER JOIN tblTransactions ON tblAccts.AccountID =
tblTransactions.AccountID
WHERE (((tblAccts.AccountID)=[Forms]![frmLedgers]![lsbAccounts])) OR
((([Forms]![frmLedgers]![lsbAccounts]) Is Null))
ORDER BY tblTransactions.TransDate, tblTransactions.TransactionID;


Form Name: frmLedgers

Row Source:
SELECT [qryAcctBalances].[AccountID], [qryAcctBalances].[AccountName],
[qryAcctBalances].[BankName], [qryAcctBalances].[AccountNumber] FROM
[qryAcctBalances] ORDER BY [AccountID];

Bound Column: 1



That looks correct to me, so I have to wonder if your form's recordsource
query returns any records for the AccountID you selected in the combo box.
Bear in mind that, because the query an inner join, no account will be
returned that doesn't have at least one matching record in tblTransactions.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)