6 nieuwe subrecords bij 1 nieuw record. (1 Viewer)

Frits van Leeuwen

New member
Local time
Today, 01:53
Joined
Sep 11, 2021
Messages
2
Hallo allemaal,

Ik heb een tabel met een subtabel.
Ik heb dit in een formulier gezet.
Dus op het formulier ook een subformulier.
Als ik nu op een toevoeg-button klik, zorg ik door middel van VBA dat er een nieuw record wordt aangemaakt. Maar nu wil ik ook dat ik 6 lege regels maak in het subformulier.
Wie kan mij op weg helpen?

Alvast bedankt.
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 19:53
Joined
May 21, 2018
Messages
8,556
Hello everyone,

I have a table with a subtable. I put this in a form. So there is also a subform on the form. When I click on the add button, I create a new record through VBA. But now I also want to create 6 blank lines in the subform. Who can help me on my way?
thanks in advance
Creating blank records is normally not something you would do in a properly designed database. Can you explain why you would need or want this

Het maken van blanco records is normaal gesproken niet iets wat u zou doen in een goed ontworpen database. Kun je uitleggen waarom je dit zou willen of nodig zou hebben?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:53
Joined
May 7, 2009
Messages
19,246
see this demo.
 

Attachments

  • test6Lines.accdb
    912 KB · Views: 105

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 00:53
Joined
Jul 9, 2003
Messages
16,300
You might find my "Nifty Subform Record Duplicator" useful.

See here for more details:-

 

Users who are viewing this thread

Top Bottom