Results 1 to 2 of 2
  1. #1
    Tracyd is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    4

    DataMacro - Creating a record in a table based on 'FOR EACH RECORD' command.

    I have a parent/child form (document) which runs a datamacro to create records in a third table , based on the records on the child form.
    I have tried the "FOR EACH RECORD...." on the child form, and included the "CREATE A RECORD...." within that data block.
    The error message i'm getting is "CANT USE A CREATE RECORD " within a 'FOR EACH RECORD" block ???


    The table i'm running the datamacro from is the third table. Any suggestions please ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Is this a web-database?

    I never use macros unless absolutely have to (twice) and haven't tried the new data macros.

    Alternative is VBA code in an event procedure of form or a control on form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-07-2012, 09:49 AM
  2. Creating unique record from record and field data
    By arthurpenske in forum Access
    Replies: 3
    Last Post: 08-24-2011, 06:11 PM
  3. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  4. Replies: 5
    Last Post: 07-18-2011, 12:18 PM
  5. Updating another record table with command button
    By erlan501 in forum Programming
    Replies: 5
    Last Post: 04-26-2010, 09:03 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