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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:23:46+00:00 2026-05-23T12:23:46+00:00

I am creating a simple invoice system in access. I currently have a form

  • 0

I am creating a simple invoice system in access. I currently have a form that I can use to view a particular invoice for a particular customer_id. I would also like to use this same form to add a new invoice. When the form is opened, I’d like it to already know that I want to use customer id #x. I already have the invoice table joined to the customer table on the “customer_id” field.

Currently when I open the form, it opens a blank invoice form that isn’t tied to a customer at all. Basically what I want to know is, how to pass the customer ID to the form so it knows I’m “adding” a new record tied to an already-created customer ID.

(Normally I’m just opening the form, and it is already populated with the invoice details, and the customer info which is joined to the invoice details, I’d just like to be able to add a new record which is already tied to the customer)

  • 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-23T12:23:47+00:00Added an answer on May 23, 2026 at 12:23 pm

    You can pass an argument to a form when you open it by using the optional parameter OpenArgs of the DoCmd.OpenForm method.

    In the form, you can get the value via Me.OpenArgs.


    EDIT:
    No, you just pass the value to OpenArgs, nothing else:

    DoCmd.OpenForm([Invoice Detail],acNormal,,,acFormAdd,,1) 
    

    Unfortunately you can only pass one argument via OpenArgs.
    If you need more, you have to do some tricks.

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

Sidebar

Related Questions

I'm creating a simple tag system that allows me to link a tag to
Creating some simple html pages specific for the iphone, and would like to use
I'm creating simple payment form that allows users to select from several different gateways
I'm creating a simple API that creates typed classes based on JSON data that
I am creating a simple application with Django. I realized that I am doing
When I'm creating a simple Windows form, is it starting in a new thread
I'm creating simple application, some kind of portfolio. I've heard that it's better to
I have made a program in Flex for creating simple schedules, similar to MS
I'm creating a simple BizTalk 2010 process that will convert a 4010 835 file
I'm creating a simple WP7 app, to have all network settings in one place,

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.