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

  • SEARCH
  • Home
  • 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 6672239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:29:05+00:00 2026-05-26T03:29:05+00:00

I have a form, user logs in and another form is generated. User submits

  • 0

I have a form, user logs in and another form is generated.

User submits a query. My problem is that I cannot keep a record of who is making the query.

The user has a uid and usernamae but once the new form is generated where the user submits the query both these identifiers are gone.

Is there a way in which I can overcome this? Thanks

  • 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-26T03:29:06+00:00Added an answer on May 26, 2026 at 3:29 am

    If you’re storing your UIDs only in the initial form, you’ll need to pass in these values to the new form.

    In essence, you could adjust your fields scopes and store your value in a place accessible by both forms, pass them into a constructor (and store accordingly), or provide an accessor in your new form to pass through the values you need.

    To answer your question on the constructor:

    Your code currently probably looks like the following:

    Dim form2 as New Form2()
    form2.Show()
    

    You’ll need to modify the constructor of the second form such as:

    Public Sub New() ...
    

    …should become…

    Public Sub New(ByVal userId As String, ByVal userName As String) ...
    

    And then pass in your values from the first form (where userId and userName are fields storing form1’s values):

    Dim form2 as New Form2(userId, userName)
    form2.Show()
    

    Then you could store them in your second form’s global scope.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have form where user submits field. Field can have letters, numbers, and punctuation.
I currently have form that checks if a user has unsubmitted changes when they
I have a registration form that when the user enters in valid registration data
I have a form where a user logs in with a google account and
I have form with user defined filters ( combobox with column names, combobox with
I have a form a user can enter their name, then it will add
in my application i have an form where user enter their username first .
I have a form where the user can upload a zip file, it works
I have a form allowing a user to signup for a news letter which
Say we have a form where the user types in various info. We validate

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.