OpenArgs equivalent in VB.Net

Posted on 2004-11-30
Last Modified: 2012-06-27
Been using Access and ASP for awhile now and a common tactic of mine is to filter form data based on an argument passed as an OpenArg value to the DoCmd.OpenForm function in Access or in a query parameter string in ASP. How do I do this in VB.Net?
Question by:cbasulto
    1 Comment
    LVL 96

    Accepted Solution

    You can define a property in a form, and set it from the caller:

    Private m_UserName As String = String.Empty

      Public Property UserName() As String
          Return m_UserName
        End Get
        Set(ByVal Value As String)
          m_UserName = Value
        End Set
      End Property


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now