Results 1 to 2 of 2
  1. #1
    newegyptian is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Mar 2019
    Posts
    46

    create more than i record in one click

    I have subform on continious sheet mode



    I want to creat 5 new record with default values in these records
    With one click
    How i can creat this button

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Use VBA code.

    For x = 1 to 5
    CurrentDb.Execute "INSERT INTO tablename(fieldname) VALUES(some value)"
    Next
    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: 8
    Last Post: 02-04-2016, 05:10 PM
  2. Replies: 2
    Last Post: 03-13-2013, 06:13 PM
  3. Click Event to create Records in two tables
    By mrfixit1170 in forum Forms
    Replies: 11
    Last Post: 10-20-2011, 12:01 PM
  4. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  5. create On Click to go to specific server folder
    By airhud86 in forum Programming
    Replies: 1
    Last Post: 01-05-2010, 12:45 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