PC Review


Reply
Thread Tools Rate Thread

On click events

 
 
=?Utf-8?B?Ym1lcnNlcmVhdUB6ZWxsZS5jb20=?=
Guest
Posts: n/a
 
      22nd Jun 2004
I am creating a db and one of my fields is a drop down field that contains 12 different options. Each of those options require more information which I have created forms for. What I would like to do is that when a selection is clicked on from the list, that subsequent form would open in another window or control on that main form. How difficult is this?
 
Reply With Quote
 
 
 
 
Gerald Stanley
Guest
Posts: n/a
 
      22nd Jun 2004
Assuming that your drop-down field is either a combo or a
list box, you can put code along the following lines in its
AfterUpdate event handler

Dim strFormName as String

Select Case combo/list.Value
Case "First Option"
strFormName = "1stForm"
Case "Second Option"
strFormName = "2ndForm"
etc
End Select

DoCmd.OpenForm strFormName

You will have to replace combo/list with the name of your
control as well as the values in your drop down list and
the form names.

Hope This Helps
Gerald Stanley MCSD
>-----Original Message-----
>I am creating a db and one of my fields is a drop down

field that contains 12 different options. Each of those
options require more information which I have created forms
for. What I would like to do is that when a selection is
clicked on from the list, that subsequent form would open
in another window or control on that main form. How
difficult is this?
>.
>

 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Click and Double click events are not fired in listview component in VB.NET sethuganesh@gmail.com Microsoft VB .NET 6 26th Aug 2009 02:25 AM
Item open events and double click events in exchange client extension. Fanxa Microsoft Outlook Program Addins 1 9th Aug 2006 08:18 AM
I can't see all-day events unless I click on them =?Utf-8?B?V2lsbGlhbQ==?= Microsoft Outlook Calendar 0 2nd Aug 2005 03:16 AM
Button Click events only firing on second click Ben Fidge Microsoft ASP .NET 5 15th Jun 2004 03:28 PM
On click events Alan Bornat Microsoft Outlook Calendar 1 11th May 2004 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.