Solved

Access 2010 Form with multiple values in a field

Posted on 2014-09-23
6
259 Views
Last Modified: 2014-09-24
I have an Access form with multiple values in a field separated by a space in the following format:
Field(Proprietary_Debit) .....Sample Data (Text)
21100009 88010001
21100009 88010001 57000001
10100001

I would like to drill down to and another form and display the data that matches. The code below works for non-multivalued fields:
DoCmd.OpenForm "frm_Object_Classes", , , "[USSGL]='" & Me.Proprietary_Credit & "'"
Thanks
0
Comment
Question by:shieldsco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 51

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 40341080
You can open with a list of values:

strList = "('" & Replace(Me.Proprietary_Credit, " ", "','") & "')"
' Example: "('21100009','88010001')"
DoCmd.OpenForm "frm_Object_Classes", , , "[USSGL] In " & strList

/gustav
0
 

Author Comment

by:shieldsco
ID: 40341176
I have thousands of rows so that would be impractical
0
 

Author Comment

by:shieldsco
ID: 40341186
Row 1 21100009 88010001
Row 2 21100009 88010001 57000001
Row 3 10100001
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:Gustav Brock
ID: 40341188
You wrote you would open a form. Click a button running the code and that will do it.

/gustav
0
 

Author Closing Comment

by:shieldsco
ID: 40341358
Very Good
0
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 40341364
Thanks!

/gustav
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question