I have a set of three forms that allow users to add and/or edit data. The forms have Add and Replicate commands built in. These work great except my client just told me that he may want to copy a record a number of times. So, he wants to click on the Replicate button, have a pop-up form ask the user how many times they wish to replicate the record, and, then, go to a datasheet form where the user can modify these copies.
As I am asking for help, I am stumped! As mentioned, I understand the concept of the replicate function - here is what I am using:
Private Sub cmdReplicate_Click()
On Error GoTo Err_cmdReplicate_Click
Dim Category, Description As Variant
Category = Me![Category]
Description = Me![Description]
DoCmd.GoToRecord , , acNewRec
Me![Category] = Category
Me![Description] = Description
Exit_cmdReplicate_Click:
Exit Sub
Err_cmdReplicate_Click:
MsgBox Err.Description
Resume Exit_cmdReplicate_Click
End Sub
I cannot figure out how to allow for multiple copies and, secondarily, how to then export these copies to some type of temporary location so that the user can edit them.
I could really use some help on this and would appreciate any ideas/advice that you can offer.
Thanks in advance...
- Ben
As I am asking for help, I am stumped! As mentioned, I understand the concept of the replicate function - here is what I am using:
Private Sub cmdReplicate_Click()
On Error GoTo Err_cmdReplicate_Click
Dim Category, Description As Variant
Category = Me![Category]
Description = Me![Description]
DoCmd.GoToRecord , , acNewRec
Me![Category] = Category
Me![Description] = Description
Exit_cmdReplicate_Click:
Exit Sub
Err_cmdReplicate_Click:
MsgBox Err.Description
Resume Exit_cmdReplicate_Click
End Sub
I cannot figure out how to allow for multiple copies and, secondarily, how to then export these copies to some type of temporary location so that the user can edit them.
I could really use some help on this and would appreciate any ideas/advice that you can offer.
Thanks in advance...
- Ben