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

Deleting a Record When ADO is Used

I am developing a Tax Cumputation Software. I have a Form with Controls connected to a Database created in MS Access in Access 2000. I used ADO to do the connection.

I have Add, Save, Cancel, Delete and Exit command buttons on the Form. All the buttons are working fine except the Delete button. Each time I run the program and click the Delete button, a runtime error is usually displayed.

What do I do to solve this problem?

Thanks.

Akinyemi
Dec 11 '06 #1
3 1140
dwadish
129 100+
I am developing a Tax Cumputation Software. I have a Form with Controls connected to a Database created in MS Access in Access 2000. I used ADO to do the connection.

I have Add, Save, Cancel, Delete and Exit command buttons on the Form. All the buttons are working fine except the Delete button. Each time I run the program and click the Delete button, a runtime error is usually displayed.

What do I do to solve this problem?

Thanks.

Akinyemi
I can't understand your question plz type the error then i will. hope the below typed are correct.
you can simply use it with (rs as recordset) .

rs.delete
then clear the text boxes
Dec 11 '06 #2
willakawill
1,646 1GB
I am developing a Tax Cumputation Software. I have a Form with Controls connected to a Database created in MS Access in Access 2000. I used ADO to do the connection.

I have Add, Save, Cancel, Delete and Exit command buttons on the Form. All the buttons are working fine except the Delete button. Each time I run the program and click the Delete button, a runtime error is usually displayed.

What do I do to solve this problem?

Thanks.

Akinyemi
Hi please post the code for the onclick event of your delete button
Dec 11 '06 #3
Killer42
8,435 Expert 8TB
Hi please post the code for the onclick event of your delete button
And don't forget the text of the error message, as dwadish suggested.
Dec 11 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Mathew Hill | last post by:
I am a beginner to the more technical aspects of Microsoft Access (2000) and was wondering if any one can help. I have 3 buttons on a form which add, delete and search for a record. However, when I...
2
by: Chris Taylor | last post by:
I keep getting the following message when trying to delete a single record from the table. "Search key was not found in any record" The record I'm trying to delete has errors in it and when...
3
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the...
1
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting...
2
by: Stuart Norris | last post by:
Dear Readers, I am developing an application that stores "messages" in array list and writes new entries to a disk file at the end. This file is used incase the user choses to restart the...
46
by: DP | last post by:
hi, i've got a form, with a subform in it. i've got a delete button in the subform. the code i;ve got is; Private Sub cmdDeleteRecord_Click() msg = "Are you sure you want to delete this...
1
by: Shortstuff12345 | last post by:
This can be ignored... I did a bunch more searching and tried a few more things listed on different posts. I was able to get the delete query to work properly by adding a statement in the code...
1
by: anco85 | last post by:
Hi. Im a total access and VB noob and require your much appreciated help. I have a table that list all the vehicles in our company. I created a form to view this information much easier with a...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
4
by: sphinney | last post by:
I'm not exactly sure how to start this post. My question is pretty simple, but it will take a little bit of context before I can state it. (And thanks in advance for taking the time to read this!) ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.