Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2004, 12:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 126
Thanks: 5
Thanked 0 Times in 0 Posts
Default Need quick help please!

Hey all!
I have a real quick easy one for ya!

My brain is failing me and I have 2 hours to get this fixed. (Leave it to me to get into one of these predicaments!)

The following code is what I have:
Code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord
Something is wrong with the code because it gives me an error reading "The name for the menu, command, or subcommand you entered is invalid."

I have used something like this before to have it update the record, but can't recall exactly what I used.

Any help is appreciated.

Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
__________________
Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
 
Old January 12th, 2004, 12:51 PM
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this instead...

DoCmd.RunCommand acCmdSaveRecord

HTH,
Mike
 
Old January 12th, 2004, 12:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 126
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Worked like a charm!
Thanks a mil!

Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a quick job done iced1992 Beginning PHP 0 January 9th, 2008 11:11 AM
i need help quick linkinboy Visual Basic 2005 Basics 11 October 25th, 2007 09:44 PM
another quick question andyhague XSLT 2 March 21st, 2006 12:13 PM
Need Quick Help yikomaka Visual C++ 1 September 1st, 2005 05:33 PM
Just a quick one!!!(again) satts Access 11 February 22nd, 2005 06:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.