J
John
I am trying to set up a command button on a form which
will open a new record while copying some of the field
values from the current record. We receive multiple types
of samples from our clients. Without having to type the
same client information in each record for each of the
sample types, I would like to copy all those fields that
stay the same (like project #, project location, etc.) and
fill in only the data that changes (Sample type, Sample
condition, etc.)
I there any way to modify the current code, for
duplicating the current record, to exclude some fields
from the duplication process? The current code written by
Access is as follows:
Private Sub AddMaterial_Click()
On Error GoTo Err_AddMaterial_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, ,
acMenuVer70 'Paste Append
Exit_AddMaterial_Click:
Exit Sub
Err_AddMaterial_Click:
MsgBox Err.Description
Resume Exit_AddMaterial_Click
End Sub
Thank you for your help in advance.
John
will open a new record while copying some of the field
values from the current record. We receive multiple types
of samples from our clients. Without having to type the
same client information in each record for each of the
sample types, I would like to copy all those fields that
stay the same (like project #, project location, etc.) and
fill in only the data that changes (Sample type, Sample
condition, etc.)
I there any way to modify the current code, for
duplicating the current record, to exclude some fields
from the duplication process? The current code written by
Access is as follows:
Private Sub AddMaterial_Click()
On Error GoTo Err_AddMaterial_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, ,
acMenuVer70 'Paste Append
Exit_AddMaterial_Click:
Exit Sub
Err_AddMaterial_Click:
MsgBox Err.Description
Resume Exit_AddMaterial_Click
End Sub
Thank you for your help in advance.
John