M
Mike
I have a table with a list of states and which user is currently responsible
for them. I am trying to get the Users across the top and the States listed
below each one with no spaces so that it can be the source for a multicolumn
listbox. I can accomplish what I want using a value list and vba but I run
into the 2048 character limit for the rowsource so I was hoping a query
could be used instead.
I can make individual queries that get all the states for a single user
however if I add them together into one master query it looks like a
staircase::
User1 | User2
_________|_______
Alaska |
Washington |
|
| Arkansas
| Texas
|
A crosstab query comes very close but it leaves null values similar to the
above. I need them all pushed all the way to the top.
Here is what the table looks like:
Table:
State | User
________________
Alaska | User1
Arkansas | User2
Alabama | User3
California | User2
Texas | User2
Washington | User 1
Wanted Result:
User1 | User 2 | User 3
_______________________________
Alaska | Arkansas | Alabama
Washington | Texas |
for them. I am trying to get the Users across the top and the States listed
below each one with no spaces so that it can be the source for a multicolumn
listbox. I can accomplish what I want using a value list and vba but I run
into the 2048 character limit for the rowsource so I was hoping a query
could be used instead.
I can make individual queries that get all the states for a single user
however if I add them together into one master query it looks like a
staircase::
User1 | User2
_________|_______
Alaska |
Washington |
|
| Arkansas
| Texas
|
A crosstab query comes very close but it leaves null values similar to the
above. I need them all pushed all the way to the top.
Here is what the table looks like:
Table:
State | User
________________
Alaska | User1
Arkansas | User2
Alabama | User3
California | User2
Texas | User2
Washington | User 1
Wanted Result:
User1 | User 2 | User 3
_______________________________
Alaska | Arkansas | Alabama
Washington | Texas |