G
Guest
Using Access 2000, I have form with a button that copies a user selected
record or a group of records, that are specs. To save data entry time, they
want to be able to copy the selected records to another location, in the same
table, and paste them. I cannot copy the primary key from the records
because that would create duplicate values. So I would like to paste the
copied records into an array, add new values to satisfy the primary key and
then insert the data into the selected location.
I am at a loss on how to take values from the clipboard and populate an
array with them. Here is my code for the "Copy" button that works fine:
Private Sub Copy_Click()
[Forms]![Permit Limits].[SampLimSub2].SetFocus
Me.Copy.Enabled = False
Me.Select.Enabled = False
Me.Paste.Enabled = True
End Sub
Any help will be greatly appreciated. Thank you.
record or a group of records, that are specs. To save data entry time, they
want to be able to copy the selected records to another location, in the same
table, and paste them. I cannot copy the primary key from the records
because that would create duplicate values. So I would like to paste the
copied records into an array, add new values to satisfy the primary key and
then insert the data into the selected location.
I am at a loss on how to take values from the clipboard and populate an
array with them. Here is my code for the "Copy" button that works fine:
Private Sub Copy_Click()
[Forms]![Permit Limits].[SampLimSub2].SetFocus
Me.Copy.Enabled = False
Me.Select.Enabled = False
Me.Paste.Enabled = True
End Sub
Any help will be greatly appreciated. Thank you.