Darrell-
That shouldn't happen. I've seen this in Reports because the report engine tries to "optimize" the Record Source based on grouping specs, but I can't remember seeing this happen in a combo box. Try changing the Row Source to this SQL:
SELECT tblCustomersMain.[Group No], tblCustomersMain.[Account Name], tblCustomersMain.[Contact First Name], tblCustomersMain.CustomerID
FROM tblCustomersMain
WHERE (((tblCustomersMain.[Excluded from Payments])=False)) AND
FROM tblCustomersMain
WHERE (((tblCustomersMain.[Excluded from Payments])=False)) AND
tblCustomersMain.CustomerID & tblCustomersMain.[Group No] IN
(SELECT [Customer ID] & [Group No] FROM tblExpectedTotals)
ORDER BY tblCustomersMain.[Account Name], tblCustomersMain.[Group No];
That's a bit of a kludge because you're joining on two fields, but it should work OK depending on the data types of CustomerID and Group No. Why are you having to join on two fields?
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
(Paris, France)
On Nov 7, 2016, at 3:57 PM, 'Embrey, Darrell' DEmbrey@bcbsm.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
.
__,_._,___
Tidak ada komentar:
Posting Komentar