You will be limiting the membership to 254. The maximum number of fields in
a table or query is 255 and you are using 1 for the company. This is not an
assumption I would be comfortable with.
> Access03/WinXP
>
[quoted text clipped - 26 lines]
>
> Any help is appreciated, as always.
Pendragon - 28 Nov 2006 22:46 GMT
Sorry, I think you misunderstood, or more likely, I wasn't clear. There are
only 11 fields in the table. The first is CompanyID, the remaining will be
Member1, Member2, etc., through Member10. Each CompanyID will be a separate
record in this table. I need to take all of the members of a company and put
them into a horizontal row/record.
The number of members by company will vary but will never exceed 10.
> You will be limiting the membership to 254. The maximum number of fields in
> a table or query is 255 and you are using 1 for the company. This is not an
[quoted text clipped - 30 lines]
> >
> > Any help is appreciated, as always.
Pendragon - 29 Nov 2006 00:09 GMT
After much searching, I found something that works. In another post, I saw a
reference to using a variable and the .Fields collection.
I set one recordset (rs) to a standard query to gather my data. I set
another recordset (rsCount) that grouped the first recordset by CompanyID and
gave a count on the MemberName field.
In my code, I used a Do While Not EOF Loop in which was a For Next loop
utilizing the rsCount("MemberNameCount") as the upper bound, and then
progessively moved across the field list using the .Fields() with the
variable set to "Member" & X (from the For Next loop).
I know that's probably not clear, so if anyone is interested in seeing it,
I'll post the code.
> You will be limiting the membership to 254. The maximum number of fields in
> a table or query is 255 and you are using 1 for the company. This is not an
[quoted text clipped - 30 lines]
> >
> > Any help is appreciated, as always.