|
-
Apr 17th, 2007, 03:42 AM
#1
Thread Starter
Hyperactive Member
VBA with Access
Hello All,
I am using VBA with Access and would wish to know to prevent the "Are you sure you want to alter/append rows?" from popping up every time I make a query.
-
Apr 17th, 2007, 05:20 AM
#2
Re: VBA with Access
 Originally Posted by singularis
Hello All,
I am using VBA with Access and would wish to know to prevent the "Are you sure you want to alter/append rows?" from popping up every time I make a query.
Open your Database and then select from the menu bar: Tools ---> Options and the Options Window will open. Next click the Edit/Find Tab and then Unselect in the Confirm Section the following: Action Queries and Record Changes. You shouldn't get that message any more.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Apr 17th, 2007, 05:45 AM
#3
Thread Starter
Hyperactive Member
Re: VBA with Access
Thanks, While you are there can you explain how to make the unsafe expression box stop popping up everytime you open the file
-
Apr 17th, 2007, 06:08 AM
#4
Frenzied Member
Re: VBA with Access
MarkGambo's setting is correct, and what I use. It applies to all Access mdb files. If you just want to turn them off for a specific piece of code, you can use DoCmd.SetWarnings False, and then DoCmd.SetWarnings True to turn them back on.
[edit]
To clarify, Mark''s way works for any mdb file opened by that install of Access. If someone with their own copy of Access opens the file, they'll still get the warnings (unless they unchecked their options as well). Setting it in code works for anyone opening that file, but doesn't affect other mdb files.
Never seen the "unsafe expression" warning.
Last edited by salvelinus; Apr 17th, 2007 at 09:40 AM.
Tengo mas preguntas que contestas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|