M
Morris
Maybe it's just impossible, but here is what I'm doing:
I've got a combobox called cmbCompany. It's Unbound and its rowsource
is 'qryRowsourceCompanies' that is:
SELECT Countries.CountryName, Companies.CompanyName,
Companies.AddressLine1, Companies.AddressLine2,
Companies.AddressLine3, Companies.ID
FROM Countries INNER JOIN Companies ON Countries.ID =
Companies.CountryID
WHERE (((Companies.Active)=True))
ORDER BY Countries.CountryName, Companies.CompanyName;
I've set the BoundColumn to 6 so that I can instantly get an ID of a
Company the user chooses. But I've also set the ColumnCount to 5 so
that the user doesn't see the IDs.
Now I've got this statement in the form's On Load property:
Me.cmbCompany = "Canada"
Now: The control appears to be empty, but Msgbox Len(Me.cmbCompany)
returns 6. So the value is there somehow it's not displayed.
The combobox has a LimitToList property set to YES if it's of any
difference.
Any help greatly appreciated
Morris
I've got a combobox called cmbCompany. It's Unbound and its rowsource
is 'qryRowsourceCompanies' that is:
SELECT Countries.CountryName, Companies.CompanyName,
Companies.AddressLine1, Companies.AddressLine2,
Companies.AddressLine3, Companies.ID
FROM Countries INNER JOIN Companies ON Countries.ID =
Companies.CountryID
WHERE (((Companies.Active)=True))
ORDER BY Countries.CountryName, Companies.CompanyName;
I've set the BoundColumn to 6 so that I can instantly get an ID of a
Company the user chooses. But I've also set the ColumnCount to 5 so
that the user doesn't see the IDs.
Now I've got this statement in the form's On Load property:
Me.cmbCompany = "Canada"
Now: The control appears to be empty, but Msgbox Len(Me.cmbCompany)
returns 6. So the value is there somehow it's not displayed.
The combobox has a LimitToList property set to YES if it's of any
difference.
Any help greatly appreciated
Morris