Delete Form Button Help

Sep 1, 2005

Hello

I currently have a button that holds a delete command. When the button is clicked, a MsgBox pops up and ensures that you want to delete (yes and no); Yes deletes, No cancels.

Now I need to change it around a bit so that it is more secure. I would like add an 'authorization' code (password). When the msgbox appears, I would like it to have a text box where the user needs to enter in the password, if the password is correct then it would delete, if wrong then cancel.

I need help. I finish my contract tomorrow and this is all I have left

thank you

View Replies


ADVERTISEMENT

Access 2010 - Delete Form Command Button With A Password To Confirm Delete

May 6, 2014

All I am trying to do is insert to have a form with a "Delete Record" button on it. The problem is I don't want anyone to be able to delete a record, I would like someone to have to insert a password to confirm the delete.

View 13 Replies View Related

Delete Record Button On Form

Jul 31, 2006

I have created a form and have put a delete button on it to delete the active record. This works fine in that it deletes the record as required.

However, at the top of the form is a combo box which can be used to find records. Once a record has been deleted, it is still listed in this combo box but as #Deleted!. Closing down the form and reopening it corrects this and the #Deleted! entry disappears.

How can I get around this? Possibly by making Access refresh the form after the delete command? If that's the correct solution, how do I do it?! Otherwise, is there a better way.

Thanks in advance,

Gary

View 6 Replies View Related

Delete Command Button - Continuous Form

Oct 23, 2006

Good Evening,
I wonder if anyone could help me please.........
I have found Ghudsons attached ‘Browsing2’ example to be of enormous
benefit/use to me when I have been creating various Databases, however I was wondering whether Ghudson or any other kind person(s) would either show or point me in the right direction as to how to create a ‘Delete’ facility which is very similar to the ‘Open’ command button on the continuous form.

I have attempted to adapt the enclosed 'coding' to see if it will come up with the result that I want, but unfortunately I cannot!


Attachment kind courtesy of Ghudson
http://www.access-programmers.co.uk/forums/showthread.php?t=97787&highlight=browsing

Your help or assistance in this matter would be very welcome...........

Best Regards


CarolW

View 2 Replies View Related

Delete Button

Mar 29, 2006

Hi all,

I have a wizard made delete record button on my form and up until today it worked fine. Now when clicked an error message comes up saying: cant find the field 'forms' referred to in your expression. I have no field 'form' in any of the tables or queries relating to this form, in any of my tables in fact, i don't have a clue what is wrong and why it suddenly wont work. Can anyone help please. Thanks

View 2 Replies View Related

Auto Delete Record Button

Oct 7, 2005

Hey.

I have created a button which when clicked imports a table from Excel into Access. Every month the users want to click on this, they want to update the Access table with the updated info in the excel table. My problem is that the whole table is imported again and not just the new rows which have been added in excel. I was just wondering if there was a way to have a button which when clicked it clears all of the records out of my table in access, instead of manually deleting them. So that my users can just click this and then click the import button.

Thanks in advance for your help.

View 8 Replies View Related

Run Delete Query With Command Button

Nov 11, 2005

Hello,

I have a delete query in my database which I would like to run from a command button on a switchboard. When I use the command button wizard, it does not show delete queries in the menu of available queries. If I create a command button manually I will need VBA code for the event procedure.

Can someone give me an appropriate code for running a delete query with a command button?

Thanks

View 2 Replies View Related

The Delete, Add, New, And Next Record Button; How Do I Get Ride Of It?

Aug 24, 2005

I want to remove the record buttons at the bottom of my form and only have a submit button. I will have a form for editing, because I don't want people to have edit access, only new record. Can this be done?

Scott

View 1 Replies View Related

Add/Delete Record Button Error

Aug 2, 2006

I am creating a form that includes an add and delete button on the form. I have two other databases that these buttons work with. Using the same VB code (and name of the button) in my current database gives me the following error:

"The express On Click you entered as the event property setting produced the following error: A problem occurred while Microsoft Office Access was communicating with the OLE server or ActiveX Control.

*The express may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].

*There may have been an error evaluating the function, event, or macro."

My VB code is as follows for the two buttons:

Option Compare Database
Private Sub add_Click()
On Error GoTo Err_add_Click


DoCmd.GoToRecord , , acNewRec

Exit_add_Click:
Exit Sub

Err_add_Click:
MsgBox Err.Description
Resume Exit_add_Click

End Sub
Private Sub delete_Click()
On Error GoTo Err_delete_Click


DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

Exit_delete_Click:
Exit Sub

Err_delete_Click:
MsgBox Err.Description
Resume Exit_delete_Click

End Sub


Any ideas on what may be the problem and how to rectify this error? All help is appreciated. Thanks in advance.

View 1 Replies View Related

Delete All Record Using Command Button

Nov 7, 2004

Hello all:

Code:

Private Sub DeleteRecords_Click()
Dim db As Database
Set db = CurrentDb
db.Execute "Delete * FROM tblJune 2005 applicants;"
End Sub

I am trying to delete all records from a dabase created in access. When I click the command button, I get this message: "User-defined type not defined"

Any suggestion on how to fix this error?

Many thanks in advance,

Dion

View 4 Replies View Related

Delete Current Record Button

Dec 11, 2004

read other threads, read and used the codes, but it wont work.

i want: in a form, the record i´m looking at, when i press the "delete record" button, that the current record is removed from the table.

only thing i´ve achieved is deleting all the records (godbless backups!)

it all looks pretty clear but if you need more info just ask.

thanks

View 2 Replies View Related

Add/delete Button Wont Work

Dec 27, 2004

hi.. i have 3 forms: master, request & progress. progress is a subform for
request, and request is a subform for master. i added "add new record" and
"delete record" buttons using the command button wizard in request form. the problem is,
when the buttons are clicked, i get this message:
you cant go to the specified record.
you may be at the end of a recordset.

by the way, each of the forms source is master, request and progress table respectively.
please helpppp

View 1 Replies View Related

Forms :: Delete Button Warning?

May 8, 2013

Windows Vista
Access 2007

I have added a button to a form that would delete a record. This works just fine.

I would like to add a confirmation that this is something that i'd like to do.

View 2 Replies View Related

Forms :: Delete Row From Table Button?

Jul 16, 2013

The purpose of this database is to have a simple form that inputs data into a table. There is a subform view on the form so they are able to see their data that was submitted into the table.

Problem:I have made an attempt at making a Delete Row button. The idea behind this is to allow them to select a row on the subform view and then delete it from the table.

Form = frmEvaluationForm
Subform = frmReviewSubForm
Table = tblEvaluationDatabase

figuring out what is causing this error 3075 (syntax error in query expre. Is there a more specific way to delete a row that has been selected?

Access 2007

Code:

Private Sub cmdDelete_Click()
'check existing selected record
If Not (Me.frmReviewSubForm.Form.Recordset.EOF And Me.frmReviewSubForm.Form.Recordset.BOF) Then
'confirm delete
If MsgBox("Delete this record?", vbQuestion + vbYesNo, "Delete") = vbYes Then
'delete now
CurrentDb.Execute "DELETE * FROM tblEvaluationDatabase WHERE CAccount = " & Me.txtCAccount
'refresh data in list
Me.frmReviewSubForm.Form.Requery
End If
End If
End Sub

View 14 Replies View Related

Making A Command Button Of A Delete Query?

Feb 16, 2006

Hi!

I'm having problems making a command button(Ta bort från engelska till svenska) of a delete query.
The name of the query is"Ta bort från engelska till svenska", which is also the name of the button on the form(huvudformulär)

Could someone please help me.
I'll enclose my zipped database.

Nille

View 2 Replies View Related

A Button To Delete A Newly Created Record?

Sep 19, 2006

Hokay, firstly my apologies if this is the wrong subforum, but since my question revolves around the behaviour of one of my forms I guessed the thread should go here.

I have a very simple little database which I use to log RMAs (Returned Merchandise Authorizations). The database consists of three forms:

Form A - The switchboard. The main menu, works fine.
Form B - The View/Edit window. Allows me to look at the records in the database and alter them if necessary, works fine.
Form C - The Add window. Has the same form layout as B, but allows for adding records only. This is the one causing problems.

Now the situation is that when I enter Form C, the box for the RMA number gets autofilled out - which is correct - thus creating a new record. However, what I want to achieve is a button on the form that will allow me to quit back to the main menu without saving the record that has been created by opening the form. This is for situations where the form has been accidentally opened, or where a form has been started, but is not required to be finished.

View 2 Replies View Related

Command Button To Delete Data In Textboxes

Apr 9, 2005

Dear All:

I have created a form where data is entered. I wish to place a command button on the form and when it is pressed, it deletes data in specified textboxes. The texboxes are: LAST_NAME, FIRST_NAME, MIDDLE_NAME.

I assume this is done using vb, but I am clueless.

Any help is most welcome.

Regards,

Dion

View 2 Replies View Related

General :: Delete Button - Forms And Tables

Sep 12, 2012

I have a form, with tab control which includes fields from two tables. When I delete a record on a form it deletes fine.When I go into the tables the record is still there in the one side of the relationship but has been deleted in the table of the many side.

I've read that a simple delete button on a form will only delete records in the many side of a relationship from a table.How do I get a delete button that deletes the record from both the one and many tables.

View 10 Replies View Related

Modules & VBA :: Delete A Record With Custom CMD Button

Jul 12, 2015

I am building a db for reservations for my limo company. I want to have a cmd button that verifies the user to make sure she wants to delete a run. This is what I have so far:

Private Sub cmdDeleteRun_Click()
Dim Response
Response = msgbox("Are you sure you want to delete this run?", vbYesNoCancel + vbCritical, "Really delete run?")
If Response = vbYes Then

End Sub

I don't know what I am missing for the cmd to actually delete it.

View 3 Replies View Related

Forms :: Delete Button Deleting Too Many Records

Aug 8, 2013

I have a columnar form with a sub-form based on an updatable query. I've created a delete button on the master form with the intention that if the user hits the delete button, it will delete the current record (like its supposed to, right?).

But what is happening is when the delete button is hit, it is asking twice for deletion confirmation and deleting the current record AND the next record. Even if I hit "Cancel" to stop the deletion, it still deletes the current and next records.

Each record has a primary unique ID that is included on the form (but not tab stopped - if that makes any difference), but it doesn't seem to be using that as the basis for deleting.

I've tried two different codes for this:

Private Sub Command110_Click()
On Error GoTo Err_Command110_Click
DoCmd.RunCommand acCmdDeleteRecord
Exit_Command110_Click:

[Code] .....

View 3 Replies View Related

Insert Button That Delete Current Record

Nov 5, 2011

i insert a button that delete current record but i want when click on button the following message will not appear.

View 1 Replies View Related

Modules & VBA :: Delete A Selected Record In A Subform By Using A Button

Jan 12, 2014

For school I have to make a application in access how to delete a selected record in the table in a subform by using a button. The subform is in the main form and the button is also in the main form

View 14 Replies View Related

Forms :: Adding Delete Button To Every Row In Detail View

Oct 7, 2013

I have taken over an Access database and I need to be able to add a delete button to every row in a detail view.

The rows contain a filename and a hyperlink which are pulled from an MS Sql server table.

I need to be able to put a small delete button at the end of each row which, when clicked will delete the relevant entry. How can I achieve this.

View 8 Replies View Related

Modules & VBA :: Delete Table Record - Command Button?

Jun 27, 2013

I have created a form and need to be able to delete employees from a table. I built a command button using the wizard and this is the current vb code-

Code:
Private Sub cmdDeleteEmployee_Click()
On Error GoTo Err_cmdDeleteEmployee_Click

DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
Exit_cmdDeleteEmployee_Click:
Exit Sub
Err_cmdDeleteEmployee_Click:
MsgBox Err.Description
Resume Exit_cmdDeleteEmployee_Click
End Sub

But when I click on the button I get a message saying it would create duplicate data in the table.

View 13 Replies View Related

Modules & VBA :: Command Button To Delete Records In Sub And Main Forms

Jun 24, 2013

I am trying to create a command button that will delete the current records in both the subform and main form.

I know how to create a command button that will delete the current record of which ever form I'm in (either the sub or main form) but I wish to do so both at the same time with one event procedure. I currently have been experimenting with a button in the subform but I don't really care if it's in the subform or main form.

View 2 Replies View Related

Can't Delete A Form

Jul 11, 2005

I am using Access 95. Lately when I make a new Form it works for a few tries then I get this error message "The Form Name you entered in either the property sheet or a macro is missed spelled or refers to a Form that does not exits. " Well I know the form exits because I just made it and I can see it. Then when I try to delete it to start over it says it’s deleting the form but still remains in the database. Any help would be greatly appreciated. Thanks.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved