Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate a record + paste errors + input mask

Status
Not open for further replies.

malibudude

Technical User
Sep 24, 2008
7
CA
Hi there,

I've got an access form with customer data and I've added the duplicate a record button. However, I have 2 fields that capture phone numbers that use an input mask and I've narrowed it down to why the duplicate fails.

The input mask is !\(999") "000\-0000" ext "99999;0;_ which works on the form perfectly, however, the duplicate function barfs at it.

Any ideas other than to remove the input mask?

Thanks
 

I have to say, that is bizarre! But I use this code for copying records, and it works correctly, not producing the error when using your Input Mask:
Code:
Private Sub CopyRecord_Click()
  If Me.Dirty Then Me.Dirty = False
  DoCmd.RunCommand acCmdSelectRecord
  DoCmd.RunCommand acCmdCopy
  DoCmd.GoToRecord , , acNewRec
  DoCmd.RunCommand acCmdPaste
End Sub


The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top