Solved

Problem with Paired MultiPik List Boxes - AccessVBA

Posted on 2008-10-28
11
285 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
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 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 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

737 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