Results 1 to 3 of 3
  1. #1
    TOPSie is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    153

    A screen with two separate RecordSources?

    I have two tables Customers and Transactions. I want to record a new transaction. So I am trying to design a single screen.

    Left hand side are Customer controls bound to the Customer table. Typing in the name of the customer and the code finds the customer or detects this is a new one and fills in all the boxes for the Customer half of the screen.

    Having got the customer details I want a set of controls to appear on the right of the screen with controls bound to the Transaction table, but all are empty (except the Customer ID) as this is a new transaction.

    I thought I could use a subform - but this just seems to produce a list of existing transactions - which is not what I want.

    I think that what I want is in effect two independent forms on the screen

    Any pointers gratefully received

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Just make you transaction subform set to Data Entry.
    Then you will only be able to add new records.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I don't get the problem. These are mutually exclusive:
    Typing in the name of the customer and the code finds the customer
    or detects this is a new one
    In the first case, would you not want to see the existing details? In the second case, there are no details based on what you typed/selected as a search, so no details. Then you need a way to add the base customer information first, then add the details. A subform should work fine in that scenario (if it is properly designed of course).

    If you open the form as data entry, you won't be able to see existing main or detail data.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Best screen resultion for most common screen sizes
    By sjs94704 in forum Database Design
    Replies: 3
    Last Post: 05-26-2015, 06:12 AM
  2. How to separate names into 2-separate fields
    By djclntn in forum Queries
    Replies: 4
    Last Post: 09-18-2014, 02:34 PM
  3. Replies: 5
    Last Post: 07-18-2014, 02:04 AM
  4. Replies: 3
    Last Post: 06-20-2011, 09:30 AM
  5. Replies: 11
    Last Post: 06-05-2011, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums