Results 1 to 4 of 4
  1. #1
    aaronpd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Location
    Canterbury, UK
    Posts
    2

    Question From command button creating a record in another table

    Please help. I’m finding it difficult to find the best way to achieve what I want from the help available from within Access and I’m new to programing in this environment.


    Background of what I’m trying to achieve. The database is for foraging where we have tables for Sites that are used and Products that can be picked. A third table Site-Product has a composite primary key made up of the Site and Product ID’s to handle the many to many relationships of products and sites. There is a fourth table for Picking records that contains the Site-Products to be picked on a day with the date amount to be picked etc. The primary key for this record is a standard auto generated number ID field.
    On a form based on the Site-Product table I want a command button that will create a Picking record for the selected record transferring the Site and Product ID’s from the selected record together with the current date.

    Thanks,
    Aaron

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Please show a jpg or pdf or word doc of your tables and relationships.

  3. #3
    aaronpd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Location
    Canterbury, UK
    Posts
    2
    Sorry for the delay in responding. I only have access to the computer I'm working on this database one or two days a week.
    I attach a jpg of the tables relationship view as requested, thanks.
    Click image for larger version. 

Name:	PickingRecord - relationships.JPG 
Views:	8 
Size:	92.4 KB 
ID:	6657

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Here is a revised relationship diagram for your consideration. You know the details, I don't
    Attached Thumbnails Attached Thumbnails ForageERD.jpg  

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

Similar Threads

  1. Replies: 3
    Last Post: 12-17-2011, 02:32 PM
  2. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Updating another record table with command button
    By erlan501 in forum Programming
    Replies: 5
    Last Post: 04-26-2010, 09:03 AM
  5. Command button help - delete record
    By Zukster in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:47 AM

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