Multi Valued field - how can I display contents?

Jubert

New Member
Joined
Jun 1, 2016
Messages
28
I am pulling a sales split table into MS Access from an accounting package.

The table only has 4 columns.
In the design mode I have entered the criteria ="John Jones" against the salesperson field and when the query is run I get John Jones entries but also other Salespeople so I'm assuming the field must be mutli valued. This makes sense as a number of sales people may work on a given contract. But how do I see what is in the field? Currently Access is just displaying one name even though the field must contain others.

Many Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Currently Access is just displaying one name even though the field must contain others.
Don't you want John Jones? If you don't have that criteria would you get more results?

Edit: sorry what I mean is that you are you getting John Jones or more than John Jones?
First you said:
when the query is run I get John Jones entries but also other Salespeople
then you said:
Currently Access is just displaying one name even though the field must contain others.

So either you are getting one name or more than one name but I'm not sure which!
 
Last edited:
Upvote 0
Hi Xenou
It's funny how much sense you think your post makes until someone asks a question.
Sorry I wasn't clear.
I wanted all records where the sales person was John Jones. However I got records returned which said e.g. Gary Robinson which was completely unexpected. The record for Gary doesn't have John's name in the salesperson field visible but it must be in there because of the filter criteria. So whilst it is fine for the records to be returned as they are what I really need to be able to do is see the entire field which must be Gary Robinson, John Jones.

Does that help?
 
Upvote 0
I normally don't use Multi-valued fields but in general they should work. Any particular reason why you think this is a multi-valued field or is that just a guess? What is your actual query? What is the data in the tables (if you can be that specific?) What are the fields in this four-column table? What happens when you just select * from that table?
 
Last edited:
Upvote 0
It is a total guess. I've just been trying to work out why the results appear as they do and that is what I came up with .

This is the SQL for the MS Access Query
SELECT dbo_UDEF_SALES_SPLITS.CH_CODE, dbo_UDEF_SALES_SPLITS.CH_USER6, dbo_UDEF_SALES_SPLITS.SALES_PERCENT, dbo_UDEF_SALES_SPLITS.SplitFROM dbo_UDEF_SALES_SPLITS
WHERE (((dbo_UDEF_SALES_SPLITS.CH_USER6)="John Jones"));

I have exported the result to excel so I can display a selection of records for you below.

Excel 2010
ABCD
1CH_CODECH_USER6SALES_PERCENTSplit
2MW21713AJOHN JONES1001st
3MW23034JOHN JONES501st
4MW23034DJOHN JONES501st
5MW23194JOHN JONES601st
6MW23194DJOHN JONES601st
7MW22683JOHN JONES1001st
8MW22683DJOHN JONES1001st
9MW23233JOHN JONES1001st
10MW23233DJOHN JONES1001st
11MW23424JOHN JONES1001st
12MW23424DJOHN JONES1001st
13MW23426JOHN JONES1001st
14MW25243JOHN JONES1001st
15MW25243DJOHN JONES1001st
16MW25325JOHN JONES1001st
17MW25325DJOHN JONES1001st
18MW25317DJOHN JONES1001st
19MW25317JOHN JONES1001st
20MW25478JOHN JONES1001st
21MW25478DJOHN JONES1001st
22MW25333JOHN JONES1001st
23MW25333DJOHN JONES1001st
24MW24957JOHN JONES1001st
25MW24957DJOHN JONES1001st
26MW24959JOHN JONES1001st
27MW27215JOHN JONES1001st
28MW27215DJOHN JONES1001st
29MW27217JOHN JONES1001st
30MW27217DJOHN JONES1001st
31MW27219JOHN JONES1001st
32MW27219DJOHN JONES1001st
33MW24897AJOHN JONES1001st
34MW24957AJOHN JONES501st
35MW24959AJOHN JONES501st
36MW27217AJOHN JONES1001st
37MW27215AJOHN JONES1001st
38MW27219AJOHN JONES1001st
39MW26958AJOHN JONES1001st
40MW26205AJOHN JONES1001st
41MW28164JOHN JONES1001st
42MW28164DJOHN JONES1001st
43MW28166JOHN JONES1001st
44MW28166DJOHN JONES1001st
45MW28045JOHN JONES1001st
46MW28045DJOHN JONES1001st
47MW27828JOHN JONES1001st
48MW27828DJOHN JONES1001st
49MW28244JOHN JONES1001st
50MW28244DJOHN JONES1001st
51MW27034AJOHN JONES1001st
52MW12759AGARY ROBINSON501st
53MW12773AGARY ROBINSON501st
54MW12948MARK OSGERBY501st
55MW12994AGARY ROBINSON501st
56MW13341AGARY ROBINSON501st
57MW13183AGARY ROBINSON501st
58MW13511AGARY ROBINSON501st
59MW13302AGARY ROBINSON501st
60MW13747AGARY ROBINSON501st
61MW13694ZOE COX501st
62MW13694DZOE COX501st
63MW13750ZOE COX501st
64MW13750DZOE COX501st
65MW13934AZOE COX501st
66MW14457ZOE COX501st
67MW14457DZOE COX501st
68MW14457AZOE COX37.51st
69MW18733SIMON BEST601st
70MW18733DSIMON BEST601st
71MW18872SIMON BEST501st
72MW18872DSIMON BEST501st
73MW21320DSIMON BEST501st
74MW21507SIMON BEST501st
75MW21507DSIMON BEST501st
76MW22364SIMON BEST501st
77MW22364DSIMON BEST501st
78MW20954ASIMON BEST251st
79MW23143SIMON BEST501st
80MW23143DSIMON BEST501st
81MW24928MIKE DAVIES501st
82MW24928DMIKE DAVIES501st
83MW23720MIKE DAVIES501st
84MW23720DMIKE DAVIES501st
85MW25774SIMON BEST801st
86MW25774DSIMON BEST801st
87MW25917SIMON BEST501st
88MW25917DSIMON BEST501st
89MW24928AMIKE DAVIES501st
90MW27227SIMON BEST801st
91MW27223SIMON BEST801st
92MW27223DSIMON BEST801st
93MW27227ASIMON BEST801st
94MW27221ASIMON BEST801st
95MW27223ASIMON BEST801st
96MW27407IVAN THOMAS801st
97MW27407DIVAN THOMAS801st
98MW27300ASIMON BEST801st
99MW16106MARK OSGERBY801st
100MW16106DMARK OSGERBY801st

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1
 
Upvote 0
what happens when you look at those codes for the other people. How are they related to John Jones? Do you have access to the table? What's in the table?
 
Upvote 0
open dbo_UDEF_SALES_SPLITS in design mode --- maybe take a screenshot and post it

So Row 54 has an entry for MARK OSGERBY. If I change the criteria from "JOHN JONES" to "MARK OSBERBY" (and add in a criteria for the CH_CODE MW12948) then the row is returned as per the original export i.e. with "MARK OSGERBY" in the CH_USER6 field (identical to row 54 previously posted)

Code:
SELECT dbo_UDEF_SALES_SPLITS.CH_CODE, dbo_UDEF_SALES_SPLITS.CH_USER6, dbo_UDEF_SALES_SPLITS.SALES_PERCENT, dbo_UDEF_SALES_SPLITS.Split
FROM dbo_UDEF_SALES_SPLITS
WHERE (((dbo_UDEF_SALES_SPLITS.CH_CODE)="GS12948") AND ((dbo_UDEF_SALES_SPLITS.CH_USER6)="MARK OSGERBY"));
 
Last edited:
Upvote 0
what happens when you look at those codes for the other people. How are they related to John Jones? Do you have access to the table? What's in the table?

There is separate table which shows how sales are split for a job (below filtered for same CH_CODE) but the two tables are not linked (though must be in the accounting package I guess).

I just want to 'See' both names in the original table.


Excel 2010
ABCDEFG
1CH_CODESALES_PERSON1SALES_PERCENT1SALES_PERSON2SALES_PERCENT2SALES_PERSON3SALES_PERCENT3
2MW12948MARK OSGERBY50JOHN JONES500
Sheet1
 
Last edited:
Upvote 0
It looks like you're saying in post #8 that will give you all the single names for records that match both criteria fields, and may give you what you want - for now. Not sure I see how.
But if you need a list of Mark, or John (or whoever) without that restriction, you're back to square one. AFAIK, there is no way to 'filter out' a single name from a multi value field in one step. I think you can do this with a query that returns the .Value from the multi field, then query that query by name. The first query will produce the names in rows; the second would filter by name.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,054
Messages
6,134,329
Members
449,866
Latest member
veeraiyah

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top