Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:15:35+00:00 2026-05-30T12:15:35+00:00

I might be making this more complicated than I have to. I have a

  • 0

I might be making this more complicated than I have to.

I have a form in Visual Basic that is adding a row of data to an Access Database.

What will happen (or rather what I would like to happen) is that when the form is created, a row will be added to said database. Once that row is added, I want to have another form open (called NewWindowA) which will pull information on that database that is related to the ID of the row that was created from the first form.

I know that in NewWindowA I need to have the form load the values on Load. But my question is: How do you pass a value to a new window that’s invoked by some action?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:15:37+00:00Added an answer on May 30, 2026 at 12:15 pm

    You can make a constructor of newwindowa that takes the id Like :

    Public Sub New(ByVal ID as Integer) 
       'Do stuff
    End Sub
    

    Another Choice you have that you make a global property in newwindowa

    Private _ID As Integer
    Public Property ID() As Integer
        Get 
            Return _ID
        End Get
        Set(ByVal value As Integer)
            _ID = value
        End Set
    End Property
    

    When you want to call neweindowa:

    Dim n as New NewWindowA
    n.ID = 12312
    n.Show()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I might be making this more difficult than I need to but I am
Every so often I am making a simple interface more complicated by adding a
This might be one of the more difficult questions I've asked, but I have
This might be a pretty basic question, or peculiar to my set up (hopefully
I'm working with stock price data and making this query to get one price
I wish I could be more specific here, but unfortunately this might be hard.
I am new at making regular expressions, and so this might just be a
I am making an abstract-base-class and was thinking I might want a pure virtual
I know it might be a duplicate question but it is really making me
I'm making a command-line based tool in Java, and I was thinking I might

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.