473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Confirm deletions

I have an Access 2002 db and via Tools->Options->EditFind have checked the
checkboxes for Confirm Document Deletions and Confirm Action Queries but get
no confirmation prompt when I e.g. delete a table or run an update query.

Is there another setting I must use?

Thank you for any advice you can offer.

Linda


Nov 13 '05 #1
5 4881
Did you turn SetWarnings off? Try:
DoCmd.SetWarnings True

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Squirrel" <wi*****@covad.net> wrote in message
news:91***************************@msgid.meganewss ervers.com...
I have an Access 2002 db and via Tools->Options->EditFind have checked the
checkboxes for Confirm Document Deletions and Confirm Action Queries but
get
no confirmation prompt when I e.g. delete a table or run an update query.

Is there another setting I must use?

Thank you for any advice you can offer.

Linda

Nov 13 '05 #2
Allen,

I still don't have a fix but have another observation.

First I tried this:

' debugging loss of prompt before deletion
Public Function warningsOn() As Boolean
DoCmd.SetWarnings True
DoCmd.RunSQL "UPDATE junk SET junk.Type = 'hello';"
MsgBox "done"
End Function

It updates the table, indicates "done". No prompt.

Have also observed a different behaviour when opening a new query. ie. go
to the Query window, select the New option, design a query which defaults to
the name of Query1. The usual behaviour when I would close that query is
that I'd be prompted as to whether or not I wanted to save it; now what it's
doing is only offering me the Save As dialog. I can no longer choose not to
save the query. I have to save it as something i.e. Query1 then go and
delete it - deletion without the prompt of course.

What the hell have I done? Same behaviour in different databases so this
new behaviour does not belong to a specific database.

thx for your help.

Linda

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
Did you turn SetWarnings off? Try:
DoCmd.SetWarnings True

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Squirrel" <wi*****@covad.net> wrote in message
news:91***************************@msgid.meganewss ervers.com...
I have an Access 2002 db and via Tools->Options->EditFind have checked the checkboxes for Confirm Document Deletions and Confirm Action Queries but
get
no confirmation prompt when I e.g. delete a table or run an update query.
Is there another setting I must use?

Thank you for any advice you can offer.

Linda


Nov 13 '05 #3
Well I don't understand how I achieved that state but have recovered from it
via rebooting.
Any insight would be appreciated. Is it possible that I have a
DoCmd.SetWarnings False somewhere without a balancing DoCmd.SetWarnings
True? Would that state persist and exist in different databases?

Chagrined Squirrel.

"Squirrel" <wi*****@covad.net> wrote in message
news:69***************************@msgid.meganewss ervers.com...
Allen,

I still don't have a fix but have another observation.

First I tried this:

' debugging loss of prompt before deletion
Public Function warningsOn() As Boolean
DoCmd.SetWarnings True
DoCmd.RunSQL "UPDATE junk SET junk.Type = 'hello';"
MsgBox "done"
End Function

It updates the table, indicates "done". No prompt.

Have also observed a different behaviour when opening a new query. ie. go to the Query window, select the New option, design a query which defaults to the name of Query1. The usual behaviour when I would close that query is
that I'd be prompted as to whether or not I wanted to save it; now what it's doing is only offering me the Save As dialog. I can no longer choose not to save the query. I have to save it as something i.e. Query1 then go and
delete it - deletion without the prompt of course.

What the hell have I done? Same behaviour in different databases so this
new behaviour does not belong to a specific database.

thx for your help.

Linda

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
Did you turn SetWarnings off? Try:
DoCmd.SetWarnings True

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Squirrel" <wi*****@covad.net> wrote in message
news:91***************************@msgid.meganewss ervers.com...
I have an Access 2002 db and via Tools->Options->EditFind have checked the checkboxes for Confirm Document Deletions and Confirm Action Queries but get
no confirmation prompt when I e.g. delete a table or run an update query.
Is there another setting I must use?

Thank you for any advice you can offer.

Linda



Nov 13 '05 #4
Good 'ol rebooting, eh? Solves many things.
Kinda like the newspaper heading, "Something went wrong in plane crash,
expert says." :-)

SetWarnings should only apply to the current instance of Access, as you
already understand, I think.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Squirrel" <wi*****@covad.net> wrote in message
news:75**************************@msgid.meganewsse rvers.com...
Well I don't understand how I achieved that state but have recovered from
it
via rebooting.
Any insight would be appreciated. Is it possible that I have a
DoCmd.SetWarnings False somewhere without a balancing DoCmd.SetWarnings
True? Would that state persist and exist in different databases?

Chagrined Squirrel.

"Squirrel" <wi*****@covad.net> wrote in message
news:69***************************@msgid.meganewss ervers.com...
Allen,

I still don't have a fix but have another observation.

First I tried this:

' debugging loss of prompt before deletion
Public Function warningsOn() As Boolean
DoCmd.SetWarnings True
DoCmd.RunSQL "UPDATE junk SET junk.Type = 'hello';"
MsgBox "done"
End Function

It updates the table, indicates "done". No prompt.

Have also observed a different behaviour when opening a new query. ie.

go
to the Query window, select the New option, design a query which defaults

to
the name of Query1. The usual behaviour when I would close that query is
that I'd be prompted as to whether or not I wanted to save it; now what

it's
doing is only offering me the Save As dialog. I can no longer choose not

to
save the query. I have to save it as something i.e. Query1 then go and
delete it - deletion without the prompt of course.

What the hell have I done? Same behaviour in different databases so this
new behaviour does not belong to a specific database.

thx for your help.

Linda

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
> Did you turn SetWarnings off? Try:
> DoCmd.SetWarnings True
>
> "Squirrel" <wi*****@covad.net> wrote in message
> news:91***************************@msgid.meganewss ervers.com...
> >I have an Access 2002 db and via Tools->Options->EditFind have checked

the
> > checkboxes for Confirm Document Deletions and Confirm Action Queries but > > get
> > no confirmation prompt when I e.g. delete a table or run an update

query.
> >
> > Is there another setting I must use?
> >
> > Thank you for any advice you can offer.
> >
> > Linda

Nov 13 '05 #5
Allen,

thx for your advice. It's really good of you to share your knowledge so
generously.

Linda
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
Good 'ol rebooting, eh? Solves many things.
Kinda like the newspaper heading, "Something went wrong in plane crash,
expert says." :-)

SetWarnings should only apply to the current instance of Access, as you
already understand, I think.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Squirrel" <wi*****@covad.net> wrote in message
news:75**************************@msgid.meganewsse rvers.com...
Well I don't understand how I achieved that state but have recovered from it
via rebooting.
Any insight would be appreciated. Is it possible that I have a
DoCmd.SetWarnings False somewhere without a balancing DoCmd.SetWarnings
True? Would that state persist and exist in different databases?

Chagrined Squirrel.

"Squirrel" <wi*****@covad.net> wrote in message
news:69***************************@msgid.meganewss ervers.com...
Allen,

I still don't have a fix but have another observation.

First I tried this:

' debugging loss of prompt before deletion
Public Function warningsOn() As Boolean
DoCmd.SetWarnings True
DoCmd.RunSQL "UPDATE junk SET junk.Type = 'hello';"
MsgBox "done"
End Function

It updates the table, indicates "done". No prompt.

Have also observed a different behaviour when opening a new query. ie.

go
to the Query window, select the New option, design a query which defaults
to
the name of Query1. The usual behaviour when I would close that query
is that I'd be prompted as to whether or not I wanted to save it; now what

it's
doing is only offering me the Save As dialog. I can no longer choose not to
save the query. I have to save it as something i.e. Query1 then go and
delete it - deletion without the prompt of course.

What the hell have I done? Same behaviour in different databases so
this new behaviour does not belong to a specific database.

thx for your help.

Linda

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
> Did you turn SetWarnings off? Try:
> DoCmd.SetWarnings True
>
> "Squirrel" <wi*****@covad.net> wrote in message
> news:91***************************@msgid.meganewss ervers.com...
> >I have an Access 2002 db and via Tools->Options->EditFind have checked the
> > checkboxes for Confirm Document Deletions and Confirm Action

Queries but
> > get
> > no confirmation prompt when I e.g. delete a table or run an update
query.
> >
> > Is there another setting I must use?
> >
> > Thank you for any advice you can offer.
> >
> > Linda


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: vishnu mahendra | last post by:
hello to all, there are two databases named A and B. One database contains employee id as primary I have another project database which includes that employee id as foreign key. How can I...
5
by: Logger | last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I have it attached to a asp:button control. In the button1 click event I call the CreateConfirmBox subroutine. The Box comes...
1
by: Will | last post by:
In Access 97 under options/edit find/Confirm - Record Changes, Document Deletions, Action Queries. Can someone tell me if these options are specific per each MDB file or are set by each PC's copy...
0
by: Joe Finsterwald | last post by:
Recently I needed to add a confirm to a LinkButton that called a JavaScript function on success, and did nothing on failure. I found documentation on adding a confirm, but not on how to place a...
4
by: tfsmag | last post by:
Okay, I have a project management app i'm writing and in the left hand menu i have a treeview control that is populated with each project... in child nodes under each project node I have an "edit"...
8
by: rn5a | last post by:
I have gone through a no. of posts in this NewsGroup regarding my problem but alas, couldn't come across one which would have helped me in resolving the issue. My problem is this: An ASPX Form...
3
by: blakerrr | last post by:
Hello World! I'm a rookie with access and my green skin needs a little help. I have two tables, one called BOM and one called Junction. BOM contains parts and assemblies and subassemblies info and...
8
by: BASSPU03 | last post by:
I'm using Access 2003 on a Windows XP O/S. I've made two copies of Form1 so that there're are 3 forms: 1) Form1 2) Form2 3) Form3 Essentially, they all write to the same Table1.
1
by: poonam jaiswal | last post by:
I m developing an application in asp.net(c#)with msaccess as back end. selection query is working properly but deletions and insertions are givig an following errors: operation must use an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.