Solved

Problem with Paired MultiPik List Boxes - AccessVBA

Posted on 2008-10-28
11
279 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
 
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 27
fso.FolderExists("\\server\HiddenFolder$") 4 49
Excel Automation VBA 19 25
Export Query data to excel file 14 28
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now