Hi All,
I have a button that duplicates records 'X' amount of times based on a value in a text box.
I need a message box to advise the user that they have created record number from - to
Eg
User creates 5 records - first record created has a auto number of 3200
I need the message box to say 'you have just created records 3200 - 3204
Is this possible?
Here is the current code on the duplicate button
Code:
Private Sub AddRecord_Click()On Error GoTo AddRecord_Click_Err
Dim x As Integer
For x = 1 To (Me.Amount.Value - 1)
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdRecordsGoToNew
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdPaste
Next x
AddRecord_Click_Exit:
Exit Sub
AddRecord_Click_Err:
MsgBox Error$
Resume AddRecord_Click_Exit
End Sub
Thanks