?
Solved

Problem with Paired MultiPik List Boxes - AccessVBA

Posted on 2008-10-28
11
Medium Priority
?
288 Views
Last Modified: 2013-12-25
Using Access and VBA:
I am working on a new project and have created a UI that needs to facilitate the user selecting from the Available list of Investors and moving the six columns of strdata that each row contains to the Selected list. If they make a mistake, they need to be able to move the row or rows of six columns back to the Available List.
My attempt at this came close, but no cigar.
I have attached detailed information file.
ExpertExchangeQuestion-ListBox.doc
0
Comment
Question by:ajslentz
[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
  • 6
  • 5
11 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22828424
ajslentz,

Posting a Word Doc without any explanation does not help us understand what you may have done wrong.
It would be better if you posted a sample of your database.

In any event, ...

See this links for how to move Items from one listbox to another.
http://support.microsoft.com/kb/274809

JeffCoachman
0
 

Author Comment

by:ajslentz
ID: 22830154
Thanks, but I had already looked at that link as well as dozens of others before posting this. I can't seem to find a good example that moves six columns back and forth. Could you not open the word doc? There is a full explanation and my code in it.
0
 

Author Comment

by:ajslentz
ID: 22830582
I have attached a cutdown version of the database to aid in the solution.
PairedListBoxes.mdb
0
Independent Software Vendors: 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 74

Expert Comment

by:Jeffrey Coachman
ID: 22833013
The word doc is meaningles to me, I needed to see the actual Database.
Thanks for submitting it, I will look at this tonight.


:-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22847237
ajslentz,

Try this.

You must study it carefully and adapt it to work in your database.

JeffCoachman

Access-EEQ23855959MoveSelectedIt.mdb
0
 

Author Comment

by:ajslentz
ID: 22867596
Would it be possible for you to zip the db so I could download a zip file instead of an .mdb file?   I am unable to open your mdb file due to the network security here. I believe this might work in getting by the security.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22867798
0
 

Author Comment

by:ajslentz
ID: 22871254
Thanks for that great solution.
I came up with another way to get it done, and it works great, but it's about four times more code than what you used. My colleges and I are truly amazed at what little bit of coding you had to use.

Great Job - Thanks  
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 22873908
ajslentz,

My code could have easily been double the size.
Fortunately the code to move the records on way, was the same for the other way.
So all I had to do is write the code once and swap out all the "Directional" variables.
;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22873911
So is my post acceptable, or do you still need my help?
0
 

Author Comment

by:ajslentz
ID: 22876081
Your solution is very acceptable! I will be replacing my code with it.
I believe that will do it for now.

Again, Thanks for a great job on this.  
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

800 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