473,385 Members | 1,876 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,385 software developers and data experts.

Delete record

Sorry to repost, but am having another look at deleting a record.

I have a form (Member) and have removed all the event procedures associated
with the Form (OnCurrent, OnDelete, OnActivate etc)
When I click on the record bar and press delete it comes up with the correct
message "You are about to delete 1 record ....", the record count drops by 1
and I say "Yes - delete it". Seems OK, record is no longer there.
Than after closing the form and re-opening the record is back and the record
count back to the original number.

Any Ideas?

Thanks

Phil
Apr 25 '07 #1
4 4380
On Apr 25, 5:27 pm, "Phil Stanton" <p...@stantonfamily.co.ukwrote:
Sorry to repost, but am having another look at deleting a record.

I have a form (Member) and have removed all the event procedures associated
with the Form (OnCurrent, OnDelete, OnActivate etc)
When I click on the record bar and press delete it comes up with the correct
message "You are about to delete 1 record ....", the record count drops by 1
and I say "Yes - delete it". Seems OK, record is no longer there.
Than after closing the form and re-opening the record is back and the record
count back to the original number.

Any Ideas?

Thanks

Phil
Just ideas...
Is there anything in BeforeUpdate, or anything that could possibly
cancel an update in another event or sub? Is the Forms Allow Deletes/
Updates etc. set to true? Do you know that the recordset or underlying
table is not in a read-only state?
Apr 26 '07 #2
It sounds like you intend to allow the deletion, but in fact you are
CANCELing the deletion. Make sure that the value associated with your
'Yes - delete it' button is equal to the vbCancel (object browser)
value.

King Ron of Chi
On Apr 25, 4:27 pm, "Phil Stanton" <p...@stantonfamily.co.ukwrote:
Sorry to repost, but am having another look at deleting a record.

I have a form (Member) and have removed all the event procedures associated
with the Form (OnCurrent, OnDelete, OnActivate etc)
When I click on the record bar and press delete it comes up with the correct
message "You are about to delete 1 record ....", the record count drops by 1
and I say "Yes - delete it". Seems OK, record is no longer there.
Than after closing the form and re-opening the record is back and the record
count back to the original number.

Any Ideas?

Thanks

Phil

Apr 26 '07 #3
Thanks for thoughts

As I said, have temporarily removed all Form events (but not Control events)
Form is set to allow additions and deletions and as I can amend the record,
I ssume that the tables are not read-only. There is no problem if I go to
the table and delete the record even after deleting it (or more accurately,
failing to delete using the form).

Have had a thought and have tried deleting the record from the query on
which the form is based. Again it appears to delete OK, but close the query
and re-open it, and there is the record again. That eliminates any problem
with the form.

Thanks

Phil

"storrboy" <st******@sympatico.cawrote in message
news:11**********************@t39g2000prd.googlegr oups.com...
On Apr 25, 5:27 pm, "Phil Stanton" <p...@stantonfamily.co.ukwrote:
>Sorry to repost, but am having another look at deleting a record.

I have a form (Member) and have removed all the event procedures
associated
with the Form (OnCurrent, OnDelete, OnActivate etc)
When I click on the record bar and press delete it comes up with the
correct
message "You are about to delete 1 record ....", the record count drops
by 1
and I say "Yes - delete it". Seems OK, record is no longer there.
Than after closing the form and re-opening the record is back and the
record
count back to the original number.

Any Ideas?

Thanks

Phil

Just ideas...
Is there anything in BeforeUpdate, or anything that could possibly
cancel an update in another event or sub? Is the Forms Allow Deletes/
Updates etc. set to true? Do you know that the recordset or underlying
table is not in a read-only state?


Apr 26 '07 #4
Thanks for coming back

Have had a thought and have tried deleting the record from the query on
which the form is based. Again it appears to delete OK, but close the query
and re-open it, and there is the record again. That eliminates any problem
with the form.

Just in case the standard delete message box has become corrupted, If I
press "Yes", the record count stays at the lower value; if I press "No", the
recordcount goes up by 1 to the original value.

Thanks

Phil
"King Ron" <Ki***************@covad.netwrote in message
news:11**********************@r30g2000prh.googlegr oups.com...
It sounds like you intend to allow the deletion, but in fact you are
CANCELing the deletion. Make sure that the value associated with your
'Yes - delete it' button is equal to the vbCancel (object browser)
value.

King Ron of Chi
On Apr 25, 4:27 pm, "Phil Stanton" <p...@stantonfamily.co.ukwrote:
>Sorry to repost, but am having another look at deleting a record.

I have a form (Member) and have removed all the event procedures
associated
with the Form (OnCurrent, OnDelete, OnActivate etc)
When I click on the record bar and press delete it comes up with the
correct
message "You are about to delete 1 record ....", the record count drops
by 1
and I say "Yes - delete it". Seems OK, record is no longer there.
Than after closing the form and re-opening the record is back and the
record
count back to the original number.

Any Ideas?

Thanks

Phil


Apr 26 '07 #5

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

Similar topics

1
by: Someonekicked | last post by:
I have a binary file, and I need to delete a specific number of characters in it. The file contains records, each record has a specific length. So the way I wanna handle deleting is that I will...
9
by: Robert Schneider | last post by:
Hi to all, I don't understand that: I try to delete a record via JDBC. But I always get the error SQL7008 with the error code 3. It seems that this has something to do with journaling, since the...
8
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: ...
3
by: Uwe Range | last post by:
Hi to all, I am displaying a list of records in a subform which is embedded in a popup main form (in order to ensure that users close the form when leaving it). It seems to be impossible to...
3
by: Maria | last post by:
Is there another way to delete the current record in a subform from the main form, another subform or a sub-subform other than setting focus on a field in the subform and using run command...
4
by: Susan Bricker | last post by:
I have a command button on a form that is supposed to Delete the record being displayed. The record is displayed one to a form. The form is not a Pop-Up nor is it Modal. Tracing the btnDelete...
5
by: Bob Bridges | last post by:
Start with two tables, parent records in one and child records in the other, a one-to-many relationship. Create a select statement joining the two. Display the query in datasheet mode. When I...
4
by: Craggy | last post by:
Hi, I am trying to pop up a yes/no message box so that a user can delete a record in a continuous form. The default delete message is a bit sloppy because it seems to move the continuous form to...
5
by: sh26 | last post by:
I can Add and Delete (A, CName, MX and TXT) Dns records on the Dns Server using C# code. The problem I am having is if someone manaully creates a TXT record on the Dns Server, I cannot delete that...
10
beacon
by: beacon | last post by:
Hi everybody, This is probably going to sound unorthodox, but I have to log records that are deleted...I know, go figure. Anyway, I have a form with a (continuous) subform, and on the subform I...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.