"Concatenated" fields in combo?

A

an

In Row Source of combo we have:

SELECT DISTINCT [T_CadQuad].[IdSector], [T_CadQuad].[Quad] FROM T_CadQuad
WHERE ((([T_CadQuad].[Quad]) Is Not Null)) ORDER BY [T_CadQuad].[IdSector],
[T_CadQuad].[Quad];

Column Count=2
Bound Column = 2

And work fine, but I would like to pu the question:

Is possible to show permanently both (IdSector+Quad) fields in "window"
combo after click, please.

Thanks in advance.
an
 
J

JackP

try...
SELECT DISTINCT [T_CadQuad].[IdSector] & " : " & [T_CadQuad].[Quad] as
DisplayText , [T_CadQuad].[Quad] FROM T_CadQuad
WHERE ((([T_CadQuad].[Quad]) Is Not Null)) ORDER BY [T_CadQuad].[IdSector],
[T_CadQuad].[Quad];
 
G

George Nicholson

SELECT DISTINCT [T_CadQuad].[IdSector], [T_CadQuad].[Quad],
[T_CadQuad].[IdSector] & " " & [T_CadQuad].[Quad] As Combined FROM T_CadQuad
WHERE ((([T_CadQuad].[Quad]) Is Not Null)) ORDER BY [T_CadQuad].[IdSector],
[T_CadQuad].[Quad];

Column Count=3
Bound Column = 2
Column Widths 0;0;1
 
A

an

JackP,

Thanks for your solution.
Work Fine.
(There are a smal conflict with ORDER BY, but if to omit it, result fine.)
an
 
A

an

George Nicholson

Work impeccably!
Don't return any error.

Many, many thanks for you help.
an


George Nicholson said:
SELECT DISTINCT [T_CadQuad].[IdSector], [T_CadQuad].[Quad],
[T_CadQuad].[IdSector] & " " & [T_CadQuad].[Quad] As Combined FROM T_CadQuad
WHERE ((([T_CadQuad].[Quad]) Is Not Null)) ORDER BY [T_CadQuad].[IdSector],
[T_CadQuad].[Quad];

Column Count=3
Bound Column = 2
Column Widths 0;0;1

--
George Nicholson

Remove 'Junk' from return address.

an said:
In Row Source of combo we have:

SELECT DISTINCT [T_CadQuad].[IdSector], [T_CadQuad].[Quad] FROM T_CadQuad
WHERE ((([T_CadQuad].[Quad]) Is Not Null)) ORDER BY
[T_CadQuad].[IdSector],
[T_CadQuad].[Quad];

Column Count=2
Bound Column = 2

And work fine, but I would like to pu the question:

Is possible to show permanently both (IdSector+Quad) fields in "window"
combo after click, please.

Thanks in advance.
an
 

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