Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Y/N field in form to open a new form if user clicks on box (Y)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan - 08 May 2007 16:39 GMT
I have a form A with a Y/N field. If the user clicks the box (Y) I want
another form B to open for additional data entry. I'd like to then return to
the main form A and continue. Can someone help me with this?
Thanks,
Dan
Klatuu - 08 May 2007 17:18 GMT
Use the Click event of the check box control to open form B and make form A
invisible. When you are finished with form B, make form A visible again.
Signature

Dave Hargis, Microsoft Access MVP

> I have a form A with a Y/N field. If the user clicks the box (Y) I want
> another form B to open for additional data entry. I'd like to then return to
> the main form A and continue. Can someone help me with this?
> Thanks,
> Dan
fredg - 08 May 2007 17:22 GMT
> I have a form A with a Y/N field. If the user clicks the box (Y) I want
> another form B to open for additional data entry. I'd like to then return to
> the main form A and continue. Can someone help me with this?
> Thanks,
> Dan

Code the Check Box AfterUpdate event:
If Me![CheckBoxName] = True then
    DoCmd.OpenForm "FormB", , , , , acDialog
End If

When clicked, the FormB will open on top of FormaA. Processing on
FormA will stop.

You will need a command button on FormB to either close FormB
(DoCmd.Close acForm, "FormB")
or make it Not Visible
(Me.Visible = False).

After clicking the command button, processing on FormA will continue.
If FormB has been made not visible, remember to include code on FormA
to close it.

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Dan - 08 May 2007 18:55 GMT
Thank you for you're responses.

> > I have a form A with a Y/N field. If the user clicks the box (Y) I want
> > another form B to open for additional data entry. I'd like to then return to
[quoted text clipped - 18 lines]
> If FormB has been made not visible, remember to include code on FormA
> to close it.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.