>Hi, there! I could use some help with a combo box. I'm trying to
>populate it with another combo box and get the error: Undefined
[quoted text clipped - 7 lines]
>
>THANKS!

Signature
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca
On Feb 29, 1:45 pm, "J_Goddard via AccessMonster.com" <u37558@uwe>
wrote:
> Select WHAT from tblLocations? You need a field list after the SELECT.
Hi, John. I cut the SQL down to be easier to read and didn't recognize
that that might throw things off:
SELECT qryLocIDsAddresses.txtLocID AS [Cust DC]
FROM tblLocations INNER JOIN (tblLocationsLocationIDs INNER JOIN
(tblLocationIDsAddresses INNER JOIN qryLocIDsAddresses ON
tblLocationIDsAddresses.numLocationAddressID =
qryLocIDsAddresses.numLocationAddressID) ON
tblLocationsLocationIDs.numLocID = tblLocationIDsAddresses.numLocID)
ON tblLocations.txtLocationID = tblLocationsLocationIDs.txtLocationID
GROUP BY qryLocIDsAddresses.txtLocID, tblLocations.txtLocationID
HAVING (((tblLocations.txtLocationID)=[cbCustomerName].Column(2)));
This works fine WITHOUT =[cbCustomerName].Column(2). The error
triggers when I add .Column(2).
J_Goddard - 29 Feb 2008 19:47 GMT
Hi -
How many columns are in the combo box [cbCustomerName]? Did you remember
that .Column(2) refers to the *third* column?
John
>On Feb 29, 1:45 pm, "J_Goddard via AccessMonster.com" <u37558@uwe>
>wrote:
[quoted text clipped - 16 lines]
>This works fine WITHOUT =[cbCustomerName].Column(2). The error
>triggers when I add .Column(2).

Signature
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca
Chris - 29 Feb 2008 19:48 GMT
Try [cbCustomerName].Column(2,[cbCustomerName].ListIndex)
If that doesn't work, try
[cbCustomerName].Column(1,[cbCustomerName].ListIndex) since column numbering
actually begins with 0 and not 1.
> On Feb 29, 1:45 pm, "J_Goddard via AccessMonster.com" <u37558@uwe>
> wrote:
[quoted text clipped - 16 lines]
> This works fine WITHOUT =[cbCustomerName].Column(2). The error
> triggers when I add .Column(2).