Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Run-time Error '2493'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Playa - 03 Jan 2005 20:51 GMT
I'm trying to save a record and then go to a new record when I hit a button
on my form.
I am getting the following error:

Run-time Error '2493'
This action requires an Object Name argument

Here is the code I have for my save button on the form.

Private Sub cmd_Save_Click()
   DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
   DoCmd.GoToRecord acDataForm, frm_Form111, acNext
End Sub

I can't see anything wrong with it.  Can someone please help.

Thanks in Advance
Dan Artuso - 03 Jan 2005 21:21 GMT
Hi,
Your form name should be a string:
DoCmd.GoToRecord acDataForm, "frm_Form111", acNext

--
HTH
Dan Artuso, Access MVP

> I'm trying to save a record and then go to a new record when I hit a button
> on my form.
[quoted text clipped - 13 lines]
>
> Thanks in Advance
George Nicholson - 03 Jan 2005 21:37 GMT
Try:
DoCmd.GoToRecord acDataForm, "frm_Form111", acNext

The object name needs to be in quotes, just like the example in the Help
file.  The error message was trying to direct you to the 2nd argument (i.e,
Object Name) as the problem.

HTH,
Signature

George Nicholson

Remove 'Junk' from return address.

> I'm trying to save a record and then go to a new record when I hit a
> button
[quoted text clipped - 14 lines]
>
> Thanks in Advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.