CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.access.forms Tags:
Item Type: Date Entered: 11/9/2009 3:16:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 94 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
MiataDiablo <mi
NewsGroup User
If subform dirty, field in main form visible11/9/2009 3:16:27 PM
Reply

0

On my main form (frmBenefits), I have a subform (subActions) that is
continuous. Either when the the subform receives focus or if the
subform is dirty (I don't care which), I would like a field on the
main form (cboStatus) to become visible.

I've googled and googled and can't find when/where to trigger the
event and the proper syntax. Any help and direction is greatly
appreciated!
"Dirk Goldgar"
NewsGroup User
Re: If subform dirty, field in main form visible11/9/2009 3:29:03 PM
Reply

0

"MiataDiablo" <miatadiablo@gmail.com> wrote in message
news:97293ef0-420a-4b70-957a-5e888bf62968@h10g2000vbm.googlegroups.com...
> On my main form (frmBenefits), I have a subform (subActions) that is
> continuous. Either when the the subform receives focus or if the
> subform is dirty (I don't care which), I would like a field on the
> main form (cboStatus) to become visible.
>
> I've googled and googled and can't find when/where to trigger the
> event and the proper syntax. Any help and direction is greatly
> appreciated!


For showing the combo box when the subform gets the focus, you could use the
subform *control's* Enter event. I'm talking here about the subform control
on the main form, not any of the controls that are actually on the subform.
Anyway, your code would be something like this:

'------ start of code ------
Private Sub subActions_Enter()

Me.cboStatus.Visible = True

End Sub

Private Sub subActions_Exit()

Me.cboStatus.Visible = False

End Sub
'------ end of code ------

The code for the Exit event is because I assume that you want to hide the
combo when the subform doesn't have the focus.

If you want to wait until the subform becomes dirty, you could use the Dirty
event of the subform's SourceObject form, but you'd also have to use some
event of the main form, maybe the Current event, to hide the combo box
again.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

MiataDiablo <mi
NewsGroup User
Re: If subform dirty, field in main form visible11/9/2009 4:07:01 PM
Reply

0

On Nov 9, 10:29=A0am, "Dirk Goldgar"
<d...@NOdataSPAMgnostics.com.invalid> wrote:
> "MiataDiablo" <miatadia...@gmail.com> wrote in message
>
> news:97293ef0-420a-4b70-957a-5e888bf62968@h10g2000vbm.googlegroups.com...
>
> > On my main form (frmBenefits), I have a subform (subActions) that is
> > continuous. =A0Either when the the subform receives focus or if the
> > subform is dirty (I don't care which), I would like a field on the
> > main form (cboStatus) to become visible.
>
> > I've googled and googled and can't find when/where to trigger the
> > event and the proper syntax. =A0Any help and direction is greatly
> > appreciated!
>
> For showing the combo box when the subform gets the focus, you could use =
the
> subform *control's* Enter event. =A0I'm talking here about the subform co=
ntrol
> on the main form, not any of the controls that are actually on the subfor=
m.
> Anyway, your code would be something like this:
>
> '------ start of code ------
> Private Sub subActions_Enter()
>
> =A0 =A0 Me.cboStatus.Visible =3D True
>
> End Sub
>
> Private Sub subActions_Exit()
>
> =A0 =A0 Me.cboStatus.Visible =3D False
>
> End Sub
> '------ end of code ------
>
> The code for the Exit event is because I assume that you want to hide the
> combo when the subform doesn't have the focus.
>
> If you want to wait until the subform becomes dirty, you could use the Di=
rty
> event of the subform's SourceObject form, but you'd also have to use some
> event of the main form, maybe the Current event, to hide the combo box
> again.
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips:www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)

Thank you so much, as usual I was killing a gnat with C4.
3 Items, 1 Pages 1 |< << Go >> >|







Similar:

newsgroup message display

how to set oe6 as the default mail client

lost my oe in the "whatever it's called"

languages

attachments blocked

emails from windows xp (outlook express) to windows vista (windows mail)

ѧϰ;m0607��ΰ��

s'il vous plait tell me

how to not get an "un-delivered" mail notification?

sort of files to be attached

double emails

hi

hie

errors 0x800ccc90 & 0x800ccc92

multi attachments

transmission timeout or protocol error

error 0x800c0133

news

two pc's and two mail programs: what happens, please ?

naib2001

news server problem

teste

subscribing

unable to receive hotmail messages

terranova @

send mails

my video.

injecting .dbx files

aaaa

seeing a thread from non-thread mode

postvak uit werkt niet

unable to open some emails

inbox is gone

problem with a folder

block placed on my ip address

save in the compiuter

problem opening attachments

password upon opening oe

oe sent file folder

cv

defaulting to 'work offline'

outlook express outgoing mail

do you want to open this file - mail attachment - dialog box gone

inbox keeps emptying!!

eliminating splash screen with oe

ablar

teste p diassis

probl�me de parametres

re: lourdes te amo

oe missing after windows 7 install

   
  Privacy | Contact Us
All Times Are GMT