![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| Sponsored Links |
| |||
| lol funny.. i mean in a report you see the clients with a link to the details. but i wan't next to the client a delete button. but i think you mean i can only do it in a form .now the part for me is to make the form show the clients in the database.?? |
| ||||
| It's as simple as using the query that you made your report with, you would merely change the form to continuous form in the properties. Include a delete button with each record. It's go-home time for me now..... Then off to billiards..... I will work on getting you a sample database to view tomorrow. ![]() |
| ||||
| Another option which i use in my dbs, see below,. I like using this as its easy to put in a select case incase the the record is deleted by accident. Just create a command button in your continuous form and paste the code in the onclick event. Feel free to change the MsgBox message to whatever you like. Code: On Error Resume Next
Dim intAnswer As Integer
intAnswer = MsgBox("Are you sure you want to Delete selected Line?", vbOKCancel, "Delete")
Select Case intAnswer
Case vbOK
intAnswer = MsgBox("Final Warning - Continue and Delete Line?", vbOKCancel, "Warning! Delete")
Select Case intAnswer
Case vbOK
DoCmd.SetWarnings (warningsoff)
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
Case vbCancel
DoCmd.CancelEvent
End Select
Exit Sub
MsgBox Err.Description
Resume Next
End Select
End Sub
__________________ If i helped you, make me famous by clicking the Last edited by AOG123; May 21st, 2008 at 04:54 AM. |
| The Following User Says Thank You to AOG123 For This Useful Post: | ||
sbenj69 (May 27th, 2008) | ||
| ||||
| Are you referring to AOG123's example? I just tested it and it works fine for me.
__________________ jmurrayhead Did I help you out? Make me popular by clicking the icon!If you found a post helpful, please click the button in the lower right-hand corner of the post.Powered by ASP.Net |
| |||
| ?why is it then it does not work for me??is it the format? |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webform Default Button | Devwhiz | .Net Development | 9 | May 15th, 2008 01:15 PM |
| Display Radio Button Value onclick | theChris | JavaScript Programming | 5 | March 22nd, 2008 02:28 PM |
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |