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

SetOptions question 1

Status
Not open for further replies.

SmallTime

Technical User
May 17, 2004
127
0
0
GB
Anyone have any idea why I get any error message saying "invalid outside of procedure" when I try to run the fololowing;

Application.SetOption "Confirm Action Queries", False
Application.SetOption "Confirm Record Changes", False
Application.SetOption "Confirm Document Deletions", False

(I'm running A2K but the app will eventually running under runtime as an MDE.)

Kind regards to all
 
How are ya SmallTime . . . . .

It appears your trying to run the code in the [blue]Declarations Section[/blue] of a module or within the [blue]Routine Section[/blue] bare bones.

[blue]Put the code in a subroutine[/blue] and call the routine . . . .

Calvin.gif
See Ya! . . . . . .
 
Seems like the new look forum has some teething problems, so here goes again.

Many thanks, you're a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top