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 Programming / July 2007

Tip: Looking for answers? Try searching our database.

OpenForm in dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 05 Jul 2007 22:32 GMT
Hello,

I am using a notinlist event to open another form in dialog mode to force
the user to make a new entry then update the cbo.

To simplify the user's life i would like to transfer the NewData value into
the newly opened dialog form but the code pauses as soon as the form is
opened.  How can I do this?  I know I'm missing something really simple.  

I swear if my head wasn't screwed on tight...I'd loose it.

Thank you,

Daniel P
Marshall Barton - 05 Jul 2007 23:39 GMT
>I am using a notinlist event to open another form in dialog mode to force
>the user to make a new entry then update the cbo.
>
>To simplify the user's life i would like to transfer the NewData value into
>the newly opened dialog form but the code pauses as soon as the form is
>opened.  How can I do this?  I know I'm missing something really simple.  

Pass the new data string in the OpenForm method's OpenArgs
argument.

DoCmd.OpenForm "the other form", _
                    WindowMode:= acDialog, _
                    OpenArgs:= NewData

Then in the other form's Load event:

    Me.sometextbox = Me.OpenArgs

Signature

Marsh
MVP [MS Access]

Daniel - 06 Jul 2007 01:20 GMT
That's a new one for me.  Thank you!  I always wondered what the openargs was
about.

Daniel P

> >I am using a notinlist event to open another form in dialog mode to force
> >the user to make a new entry then update the cbo.
[quoted text clipped - 13 lines]
>
>     Me.sometextbox = Me.OpenArgs
 
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



©2008 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.