Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
Passing Listbox data to another access form
View previous topic :: View next topic  
Author Message
MaxPower
Newbie


Joined: 13 Jul 2005
Posts: 1

PostPosted: Jul 13th, 2005 09:02 PM    Post subject: Passing Listbox data to another access form Reply with quote

I'm stuck and can't get out,

I am trying to have the user select one item in a multi column list box. Then when they double click on that item it should open another form and pass the selection to the new form. This form that opens on the double click has text boxes which display all the fields from the tables for the item selected. The original tables of data come from an excel spreadsheet. This is the code i have for when the user double clicks the item in the listbox;

Private Sub List22_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "router details"
DoCmd.OpenForm stDocName, , , "[Router Name] = ItemData", stLinkCriteria

End Sub

I'm not sure if i am taking the right approach to doing this. Any help would be greatly appreciated. "router details" is the name of the form that opens on the double click and has the text boxes for displaying the selected data. [Router Name] is the name of the text box in the router details form that should display the boundcolumn of the item selected and therefore all other text boxes should base their data on the data in the boundcolumn.
Thanks in advance for any help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic