¡Gracias! De Todas formas Icue , me figuro que para hacer hasta 200 registros quedaría el código así?
Private Sub Comando11_Click()
DoCmd.SetWarnings False
Dim i As Byte
For i = 1 To Stocks
DoCmd.RunSQL "Insert into aux(numero,control,compañia,numcontrol)Values(" & Left([Numero], 7) & "+" & i & "-1," & Numder & "+" & i & "-1,'" & Me.Compañia & "')"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+6"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+13"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+20"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+27"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+34"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+41"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+48"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+55"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+62"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+69"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+76"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+83"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+90"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+97"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+104"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+111"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+118"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+125"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+132"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+139"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+146"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+153"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+160"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+167"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+174"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+181"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+188"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+195"
Next
For i = 1 To 7
DoCmd.RunSQL "Update aux set control=" & i & "-1 where control=" & i & "+202"
Next
DoCmd.RunSQL "Insert into Contador2(numero,control,compañia,numcontrol) Select numero,control,compañía,numcontrol from aux"
DoCmd.RunSQL "delete * From aux"
For Each Control In Form.Controls
If Control.ControlType = AcTexbox Then
Control.Value = ""
End If
Next
End Sub
He llamado a Numbilletes "Stocks", porque es su auténtica denominación
me da error en el "Control" que pone cursiva
Dice que es una variable: no se puede asignar a una expresión. Eso pone
Ya me comentas algo , gracias