Backup box won't hide

  • Thread starter Afrosheen via AccessMonster.com
  • Start date
A

Afrosheen via AccessMonster.com

Thanks for reading my post.
I have two forms one is the main menu form which has a subform attached
called frmbkbox. What it does is when Saturday comes around it pops up and
says make a back up. What I want to do is after the back up is done then hide
the pop up box {frmbkbox.}

In order to do the back up you have to click on a button which brings up
another form called frmfilemaint. You can click on another button which will
actually do the back up. The only thing is that when I close the frmfilemaint
box the frmbkbox is still showing on the main menu.

I've tried setting code on the current but it doesn't work. Here is my code:

Dim bolPrintA As Integer
10 bolPrintA = Nz(DLookup("[fcopy]", "tblconfig"))

20 If bolPrintA = True And Weekday(Now()) = 7 Then
30 Me!frmBKBox.Visible = False
40 Else
50 Me!frmBKBox.Visible = True
60 End If


Thanks for the help. I hope I gave enough information.
 
T

tina

you can add code to frmfilemaint's Close event procedure, or to the button
that closes the form, to hide the subform on the main menu form, as

Forms("NameOfMainMenuForm")!frmBKBox.Visible = False

replace NameOfMainMenuForm with the actual name of the main menu form, of
course.

hth
 
A

Afrosheen via AccessMonster.com

Thanks Tina, It worked great. I really appreciated the help.


you can add code to frmfilemaint's Close event procedure, or to the button
that closes the form, to hide the subform on the main menu form, as

Forms("NameOfMainMenuForm")!frmBKBox.Visible = False

replace NameOfMainMenuForm with the actual name of the main menu form, of
course.

hth
Thanks for reading my post.
I have two forms one is the main menu form which has a subform attached
[quoted text clipped - 19 lines]
Thanks for the help. I hope I gave enough information.
 
T

tina

you're very welcome :)


Afrosheen via AccessMonster.com said:
Thanks Tina, It worked great. I really appreciated the help.


you can add code to frmfilemaint's Close event procedure, or to the button
that closes the form, to hide the subform on the main menu form, as

Forms("NameOfMainMenuForm")!frmBKBox.Visible = False

replace NameOfMainMenuForm with the actual name of the main menu form, of
course.

hth
Thanks for reading my post.
I have two forms one is the main menu form which has a subform attached
[quoted text clipped - 19 lines]
Thanks for the help. I hope I gave enough information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top