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 / Modules / DAO / VBA / May 2005

Tip: Looking for answers? Try searching our database.

Compile error: Argument not optional

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim - 29 Apr 2005 17:12 GMT
Im trying to run and sql statement:

DoCmd.SetWarnings = False
         DoCmd.RunSQL ("update AdditionalServiceRequests set request1 = 0
WHERE AdditionalServiceRequests.AdditionalServicesID= " &
[Forms]![Login]![MostRecentEventID] & " ;")
  DoCmd.SetWarnings = True

but I get an error on this line:
DoCmd.SetWarnings = False

What does this mean and how do I fix it?..thanks
Robert Morley - 29 Apr 2005 18:16 GMT
Don't use an "=" sign, it's just
   DoCmd.SetWarnings False

Rob

> Im trying to run and sql statement:
>
[quoted text clipped - 8 lines]
>
> What does this mean and how do I fix it?..thanks
Van T. Dinh - 01 May 2005 11:53 GMT
... and the same for the 2nd SetWarnings.

Signature

HTH
Van T. Dinh
MVP (Access)

> Don't use an "=" sign, it's just
>     DoCmd.SetWarnings False
[quoted text clipped - 13 lines]
> >
> > What does this mean and how do I fix it?..thanks
 
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.