daniels012
Technical User
I have a button I use to copy data to new form. It works great but I would like to add a number to a text field. Is this possible?
IE: The sample number is WIL-215. I have the code below so far: How can I make the next SampleNumber WIL-216 automatically?
Private Sub CopySample_Click()
Me!SampleNumber.SetFocus
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdPasteAppend
DoCmd.GoToControl "SampleNumber"
End Sub
Or is there a way?
Thank You
Michael
IE: The sample number is WIL-215. I have the code below so far: How can I make the next SampleNumber WIL-216 automatically?
Private Sub CopySample_Click()
Me!SampleNumber.SetFocus
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdPasteAppend
DoCmd.GoToControl "SampleNumber"
End Sub
Or is there a way?
Thank You
Michael