Multi value field display on a form or sub-form (1 Viewer)

lana

Registered User.
Local time
Today, 22:26
Joined
Feb 10, 2010
Messages
92
Hi there,
Can anyone help me regarding the multi-value field?
I have a multi-value field and the selection is OK. Now I need to show the data stored in that field in a text box or a sub-form.
Example: stored data is "David,Smith,Lara" I can see it in the table or in a query but I can not use that query in a subform or lookup the field data as shown.
Any help will be appreciated.
Cheers
 

moke123

AWF VIP
Local time
Today, 13:56
Joined
Jan 11, 2013
Messages
3,917
Here's an article on MVF's and why you should not use them.

Although MVFs can seem an attractive idea for new users, most experienced developers avoid them completely.

However you create them, what you see in the MVF is masking the fact that the records are actually stored as normalised data in a deep hidden system table with a very long name that starts with 'f_' followed by a long string then ends in '_MVF' or whatever your MVF field is called.
It is this separation between what you see and what is actually stored that means MVFs can be extremely difficult to work with.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:56
Joined
May 7, 2009
Messages
19,237
you Create a Query and output the .Value part of that field in your query.
use the query as recordsource of your subform.
 

lana

Registered User.
Local time
Today, 22:26
Joined
Feb 10, 2010
Messages
92
Thank you for the replies.
I tried the .value part but it shows the IDs, not the names like (David,Smith,Lara).

Is it possible to show the multi-selected data as it appears in the query (David,Smith,Lara), on a form or I am wasting my time?
Thanks again.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:56
Joined
May 7, 2009
Messages
19,237
you need to Join the Lookup table to your Query.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:56
Joined
May 7, 2009
Messages
19,237
there is a demo here.
see if you can get something.
 

Attachments

  • multiValue.accdb
    604 KB · Views: 491

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:56
Joined
May 7, 2009
Messages
19,237
ok, goodluck.
 

isladogs

MVP / VIP
Local time
Today, 18:56
Joined
Jan 14, 2017
Messages
18,216
Did you read my article about MVFs that was linked in post #2?
Whilst I really don't recommend their use, the article does give you the answer to your question.
 
Last edited:

lana

Registered User.
Local time
Today, 22:26
Joined
Feb 10, 2010
Messages
92
Yes I did. I agree with you completely. it's nonsense.
Thanks
 

lana

Registered User.
Local time
Today, 22:26
Joined
Feb 10, 2010
Messages
92
I meant the MVF is nonsense. Your article helps a lot of people like me.
Cheers
 

Users who are viewing this thread

Top Bottom