Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 30th, 2003, 03:01 PM
Vrach Vrach is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 Vrach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
listbox multiselect

I have a list box B that is polulated from a query of another listbox's A selection. I am trying to make B be multiselect listbox and have the choices made place inanother list box.??

Here is the code i am using

Dim strPara As String

Dim frm As Form, ctl As Control
Dim varItm As Variant

Set frm = Forms!frmMain
Set ctl = frm!lstSubHeading
For Each varItm In ctl.ItemsSelected
Debug.Print ctl.ItemData(varItm)
strPara = "SELECT tblContent.ParaID, tblContent.paraName FROM tblContent INNER JOIN tblSubHeading ON tblContent.SubHeadingID = tblSubHeading.SubHeadingID WHERE tblContent.SubHeadingID = Forms!frmMain!lstSubHeading.ItemData(varItm)"
Me.lstPara.RowSource = strPara
Next varItm



All the items seem to be inorder and are right in the debug windows
but i won't display in the list box

Vishal

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > listbox multiselect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway