Additional records on a query (1 Viewer)

r621

New member
Local time
Today, 16:40
Joined
Dec 18, 2020
Messages
24
Hello to everybody,

I need a little support about my db that I've created, basically I use it in order to generate script for Autocad for automated drawings, my concern is about the following matter:

With a Query (name : LOOP SCR_2) , after SCR_SEQ 17

1678827065147.png


I need to insert additional records SCR_SEQ 18 and 19 which are additional autocad commands like : SAVE and 1
This operation shall be repeated every 3 Addresses e.g. 3,6,9

The desired result shall be:

1678827475138.png


I've enclosed my DB in order to have a better understanding.

Thanks to who will help me :)
 

Attachments

  • 1678826944882.png
    1678826944882.png
    8.1 KB · Views: 55
  • SCRIPT.accdb
    964 KB · Views: 76

jdraw

Super Moderator
Staff member
Local time
Today, 10:40
Joined
Jan 23, 2006
Messages
15,393
Not sure I understand. Here is an interpretation. I made a copy of SCR_1.
If you modify SCR_1 to
1678830522476.png

Your current Loop SCR_1 will produce 18 and 19 records like this throughout your data.

1678832269847.png
 
Last edited:

r621

New member
Local time
Today, 16:40
Joined
Dec 18, 2020
Messages
24
Hello jdraw, I need to insert records 18 and 19 for the Address_T 3,6,9 etc. every 3 address I need to insert record 18 and 19
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 22:40
Joined
May 7, 2009
Messages
19,246
i created small queries first (qryZA, qryZB, qryForUnionZA, qryForUnionZB).
the made a union query (LOOP SCR_1 FINAL) creating union on 3 queries (see LOOP SCR_1 FINAL on design view).
the final query is LOOOP SCR_1 FINAL.
 

Attachments

  • SCRIPT.accdb
    1,012 KB · Views: 54

Users who are viewing this thread

Top Bottom