Solved

Problem with Paired MultiPik List Boxes - AccessVBA

Posted on 2008-10-28
11
282 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
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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