Results 1 to 2 of 2
  1. #1
    scottk is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Nov 2018
    Posts
    1

    Question Insert records into a secondary table using data from a primary table

    Hello,

    I am trying to build a database which has a checklist type functionality. I have created forms & subforms to present the information as I want it. My only problem is getting my macro to work correctly when inserting a new record into my primary table. The macro is Create a Record in the secondary table. The first SetField is supposed to pull a value from a field in the primary table. The other SetField statements are inserting static text data into fields in the secondary table.



    I have followed the instructions by @JeffConrad in this thread on the microsoft forum:


    https://answers.microsoft.com/en-us/...e-6cb36c93ffab

    When I set it up the way he has, I still get an error for the SetField pulling info from the primary table:

    The identifier '[Deal Profile].[Deal Name] could not be found. This is indeed the table and field name and I even used intellisence to ensure I pulled it correctly. I am not sure what I am doing wrong or how to fix it. I hope someone can help.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Suggest you post pics of your macro. No promises because most of the responders I know here (including me) don't use macros. By any chance is the data coming from a form or subform? If a subform, I suspect your form reference isn't valid - and if a navigation form is involved, that's even worse.
    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. Replies: 5
    Last Post: 12-01-2014, 11:31 AM
  2. Replies: 3
    Last Post: 04-09-2014, 12:48 PM
  3. Replies: 2
    Last Post: 12-20-2011, 07:33 AM
  4. Replies: 1
    Last Post: 12-28-2010, 11:24 AM
  5. Replies: 0
    Last Post: 02-24-2010, 12:56 AM

Tags for this Thread

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