Yes, it is possible, but would take some coding to accomplish it. The code
would be in the form, not the sub form. You could provide two text boxes -
one for the from number and one from the to number. The a command button to
add the records. It might go something like this (untested air code):
Dim lngFrom as Long
Dim lngTo as Long
Dim lngCounter as Long
Dim dbf as Database
Dim rst as Recordset
Set dbf = CurrentDb
Set rst = CurrentDb.OpenRecordset("InvoiceTable", dbOpenDynaset)
lngFrom = Me.txtFromNumber
lngTo = Me.txtToNumber
For lngCounter = lngFrom To lngTo
With rst
.AddNew
![Client_Code] = Me.txtClientCode
![Invoice_No- = lngCounter '<- May need to think about data type
here
'If you need to populate other fields and have the data, they
could go here
.Update
End With
Next LngCounter
rst.Close
Set rst = Notihing
Se dbf = Nothing