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 4257830
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:33:59+00:00 2026-05-21T05:33:59+00:00

My database has several tables to split up the large number of attributes for

  • 0

My database has several tables to split up the large number of attributes for a report.

I have created a series of Forms to enter data with a “Next” button which closes the form and opens the next.

How do I pass the primary key between forms? I want it to auto-populate so that the user doesn’t have to re-type it on every form.

EDIT: Each form corresponds to a single table. The entry for that table/form doesn’t exist until “Next” is clicked on that form.

  • 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-21T05:34:00+00:00Added an answer on May 21, 2026 at 5:34 am

    Use the WhereCondition with Docmd.OpenForm. (See OpenForm Method)

    So if your next form is named frmTwo, the primary key field is named ID, and the current form has a control named txtID which contains the value you want to pass to the next form:

    DoCmd.OpenForm "frmTwo", WhereCondition:="ID = " & Me.txtID
    

    That suggestion assumes ID is numeric data type. If it’s text, you would have to enclose the Me.txtID value with quotes when building the WhereCondition.

    Edit: I didn’t understand your situation clearly. Not sure I do now, either, but I suspect the easiest "code-free" solution would be to use a main form with your subsidiary forms as subfrom controls. Then by setting the link Master/Child fields property you can automagically transmit the primary key value to new records in the various subforms.

    If the number of subsidiary forms is large, you can include them as separate pages in a tab control on the main form.

    That approach is something Access does well and easily, without requiring extra VBA code or macros.

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

Sidebar

Related Questions

I have a huge database that has several tables that hold several million records.
I have a SQL database that has several hundred tables in it, but I
I have several tables in a database. One table (tbl_transactions) has thousands of orphaned
I have a SQL Mobile database with one table. It has several columns with
I inherited MYSQL database that has lots of tables with data like CREATE TABLE
I have a database that has lots of data and is all neat, normalized
I have a mysql database which has grown to over 200 tables in it.
I created a simple databse using Oracle that has several tables and a few
I have a database that has a vessel pressure that is trended every 30
I have a database that has four columns like this level_1, level_2, level_3, level_4

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.