|
Question : Enter Multiple Entries of same record value
|
|
Hi,
I have a form called frmWIP1, it's recordsource is WIP1. This form contains the following fields:
CountyNumber AdditionalBilling Code CustomerName Amount
The customer has requested the ability to multiple the record in cases where they have more than one that are exactly the same.
Does anyone know how to do this? I've heard that they can have up to 30 of the same exact record. However, they need to keep (store) each record separately.
Thanks for any help!
|
|
Answer : Enter Multiple Entries of same record value
|
|
bell,
You can add a Command Button on your form to Duplicate a record using the Wizard on the ToolBox.
OR
The VB Code will look something like this ... Replace MyCommandButton with your Command Button's name. This will duplicate the current record you have selected on your form.
Private Sub MyCommandButton_Click() On Error GoTo Err_MyCommandButton_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_MyCommandButton_Click: Exit Sub
Err_MyCommandButton_Click: MsgBox Err.DESCRIPTION Resume Exit_MyCommandButton_Click End Sub
ET
|
|
|
|