If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > delete button in access grayed out

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-09, 05:30
tintincute tintincute is offline
Registered User
 
Join Date: Feb 2009
Posts: 49
delete button in access grayed out

hi
I just migrated to ms access 2007 from ms access 2003. And I have a problem in deleting records.

I also created a new ribbon in the new ms access 2007. I would like to know what is the code use so that I could delete the records. Here is what I got in my basRibbonCallbacks

Sub OnActionButton(control As IRibbonControl)
Select Case control.Id
Case "btnOpenFormular"
DoCmd.OpenForm "FormName"
Case "btnCloseFrmEingabe"
DoCmd.Close acReport
Case "btnDelete"
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End Select
End Sub

is this correct? I tried this and its still not working.

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-16-09, 05:41
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
?
you have asked a question about Access 2007 in the VB forum?
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 12-16-09, 07:05
tintincute tintincute is offline
Registered User
 
Join Date: Feb 2009
Posts: 49
oopss sorry my bad.
will post this in microsoft access
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On