Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2005, 05:20 PM
Registered User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default List form to Detailed form

I feel stupid asking this but I need a VBA code. I have a continous form, a list basically. When you click on any record, say record 10 with an ID of ABC, I want it to open another form displaying a single record which should be the same record (ID of ABC).

What I described is from same database and same table.
 
Old October 25th, 2005, 05:48 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Assuming both forms currently exist, use the Button wizard for "Open Form in Edit", you will need to identify the form you want to open and then the link between the forms and... it will give you the code you need. Then transfer the code to your listbox click event, and delete the button that you don't need anymore. Once you have done it once... you will get the hang of it.
 
Old October 25th, 2005, 11:50 AM
Registered User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response. What you have done for me is opened up lots more possibilities.

I am new to Access and VBA but I am excited so there is energy to pursue things.
 
Old October 26th, 2005, 02:21 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

That's why I didnt just give you the code to do it. ;P





Similar Threads
Thread Thread Starter Forum Replies Last Post
copy a list box from a form to a report bjcountry Access 1 April 18th, 2008 03:14 PM
How to retain form values from dependent list ? George B Javascript 0 September 15th, 2006 03:54 PM
Dropdown List search form [?] antonioluis Dreamweaver (all versions) 1 May 25th, 2005 01:10 AM
refer to list box on another form timbal25 Access 2 August 5th, 2003 07:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.