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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Records Function

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I Have a form with a button that allows the users to duplicate there records...

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
Me![sampleno] = [sampleno] + 1
DoCmd.GoToRecord , , acLast


I have two fields that are date format. when i put a input mask on those two fields, they will not get copied to the next record. WHY???????

If I take the input mask off, it works fine.


Can anyone help with this?

Thanks

DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
The only thing Acces will accept in a date field is this

mm/dd/yy

it will not insert a date any other way, period.
it does like dd/mm/yy or yy/mm/dd
or whatever other format you have

you may be able to do this

=format(yourdate, "mm/dd/yy") and put that in a separate hidden textbox and save it instead of the format you are using. so you end up with two boxes (one hidden) the one that you actually save into Access.

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top