Hi Moises,
>I have a label sheet with 30 labels, 3 labels per row and 10 rows
>
>Suppose the next label to print is number 11 and not number 1
>
>How can I skip the first 10 labels ?
>
>I was tring to select into a cursor and fill first records
>with blanks records
>
>Could anybody help me doing it or another way to do it ?
>
>Thanks
>
>Moises
Suppose that your cursor has lblNumber field (integer type) with the label's number. So, index the cursor by lblNumber. How your first label is the number 11, your first recno in cursor is label 11.
Insert blanks recno into the cursor. Thus:
Local liMaxNewLabel as Integer
Local liForLabel as Integer
Goto Top In myCursor
m.liMaxNewLabel = myCursor.lblNumber - 1
For m.liForLabel = 1 to m.liMaxNewLabel
Insert Into myCursor (lblNumber) Values (m.liForLabel)
EndFor
Good luck!
Erick
Força Sempre!
Strength Always!