Referencing a calculated column of a query/combobox

J

Jeff Klein

I have a combobox (ClientFullName) that has a rowsource :

SELECT DISTINCTROW Clients.ClientID, [ClientLastName] & ", " &
[ClientFirstName] AS ClientLastandFirst
FROM Clients;

The combobox "Value" is the clientID number.

Is there a way to reference the ClientLastandFirst value from this combo
box.

I have tried strClientFullName = ClientFullName.Value but Ill i get is the
ClientID number.

Any help is appreciated. Thanks Jeff
 
M

Mark

Try strClientFullName=ClientFullName.Column(1)
Access counts columns starting at zero, so Column(0) would be the ID number
 
J

Jeff Klein

Works great. Thank you very much, Jeff

Mark said:
Try strClientFullName=ClientFullName.Column(1)
Access counts columns starting at zero, so Column(0) would be the ID number

Jeff Klein said:
I have a combobox (ClientFullName) that has a rowsource :

SELECT DISTINCTROW Clients.ClientID, [ClientLastName] & ", " &
[ClientFirstName] AS ClientLastandFirst
FROM Clients;

The combobox "Value" is the clientID number.

Is there a way to reference the ClientLastandFirst value from this combo
box.

I have tried strClientFullName = ClientFullName.Value but Ill i get is the
ClientID number.

Any help is appreciated. Thanks Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top