It sounds like a crosstab query will do what you want. Post the table and
field names with their datatype and a sample of data.

Signature
KARL DEWEY
Build a little - Test a little
> I have 2 tables that I have linked in a query by stock. I have then created
> 5 columns by Exchange where the stock is traded (Table 1) and at by looking
[quoted text clipped - 8 lines]
>
> Thanks
I don't know for sure how to post the data???? HELP.
Also, I think the problem with a crosstab is that it will only let me have 1
column and I want to have 5 (# of Exchanges).
> It sounds like a crosstab query will do what you want. Post the table and
> field names with their datatype and a sample of data.
[quoted text clipped - 11 lines]
> >
> > Thanks
KARL DEWEY - 06 Jul 2007 19:58 GMT
Type the name of the table and list the fields below like this --
RESERVE NAMES --
Issue - text
AMEX - text
CBOE - text
ARCA - text
ISE - text
PHLX - text
SP ADDS --
Issue - text
Expr1 - text
Then put a sample of the data like this --
RESERVE NAMES --
Issue AMEX CBOE ARCA ISE PHLX
CSU X
CSX X
ABC X
XYZ X
SP ADDS --
Issue Expr1
CSU AMEX
ABC ISE
XYZ CBOE

Signature
KARL DEWEY
Build a little - Test a little
> I don't know for sure how to post the data???? HELP.
> Also, I think the problem with a crosstab is that it will only let me have 1
[quoted text clipped - 15 lines]
> > >
> > > Thanks
SELECT [SP ADDS].Issue, IIf([SP ADDS]![Expr1] Like "*AMEX",[RESERVE
NAMES]![AMEX],Null) AS AMEX, IIf([SP ADDS]![Expr1] Like "*CBOE",[RESERVE
NAMES]![CBOE],Null) AS CBOE, IIf([SP ADDS]![Expr1] Like "*ARCA",[RESERVE
NAMES]![ARCA],Null) AS ARCA, IIf([SP ADDS]![Expr1] Like "*ISE",[RESERVE
NAMES]![ISE],Null) AS ISE, IIf([SP ADDS]![Expr1] Like "*PHLX",[RESERVE
NAMES]![PHLX],Null) AS PHLX
FROM [RESERVE NAMES] INNER JOIN [SP ADDS] ON [RESERVE NAMES].Issue = [SP
ADDS].Issue
GROUP BY [SP ADDS].Issue, IIf([SP ADDS]![Expr1] Like "*AMEX",[RESERVE
NAMES]![AMEX],Null), IIf([SP ADDS]![Expr1] Like "*CBOE",[RESERVE
NAMES]![CBOE],Null), IIf([SP ADDS]![Expr1] Like "*ARCA",[RESERVE
NAMES]![ARCA],Null), IIf([SP ADDS]![Expr1] Like "*ISE",[RESERVE
NAMES]![ISE],Null), IIf([SP ADDS]![Expr1] Like "*PHLX",[RESERVE
NAMES]![PHLX],Null);
> It sounds like a crosstab query will do what you want. Post the table and
> field names with their datatype and a sample of data.
[quoted text clipped - 11 lines]
> >
> > Thanks