A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access 2007 ribbon help



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2009, 02:09 PM posted to microsoft.public.access.forms
Zanetti
external usenet poster
 
Posts: 1
Default Access 2007 ribbon help

I create ribbon but i cant make him to work( if i press some button on ribbon
to open some form or report)

Here is a code.

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
ribbon startFromScratch="true"
tabs
tab id="MyTab" label="Kalkulacije"
group id="Kalkulacije" label="Kalkulacije"
button id="NovaKalkulacija" imageMso="DatasheetView"
size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" /
button id="StampajKalkulaciju" imageMso="FilePrint"
size="normal" label="*tampaj Kalkulaciju" onAction = "ButtonCallback"/
button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal"
label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/
button id="pRkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregle
Kalkulaciju" onAction = "ButtonCallback"/
/group
group id="TK" label="Trgovačka knjiga"
button id="OtvoriTK" imageMso="FileOpen" size="large"
label="Otvori Trgovačku knjigu" onAction = "ButtonCallback"/
button id="StampajTK" imageMso="FilePrint" size="large"
label="*tampaj Trgovačku knjigu" onAction = "ButtonCallback"/

/group
/tab
/tabs
/ribbon
/customUI



i make code for Button Call back but i don't know where can i put him

here is code

Sub ButtonCallback(control As IRibbonControl)
Select Case control.ID
Case "OtvoriTK"
DoCmd.OpenForm "Tgovacka_knjiga"
Case "NovaKalkulacija"
MsgBox "TRT"
End Select
End Sub

Other problem is how can i put my own pictures into button instead access
pictures.
And how can i write help to show when mouse cursor is on the button.

TNX
  #2  
Old December 16th, 2009, 06:05 PM posted to microsoft.public.access.forms
Mark Andrews[_2_]
external usenet poster
 
Posts: 600
Default Access 2007 ribbon help

I have a few articles on ribbons
http://www.rptsoftware.com/help/micr...ccess_general/ and some examples
(most of them do buttons). The http://www.accessribbon.de/en/ site has some
examples of using your own images (other than standard images). They also
have lots of examples.

Sounds like you are close to understanding how things work. The call back
code just goes in a regular module.

HTH,
Mark
RPT Software
http://www.rptsoftware.com






"Zanetti" u16908@uwe wrote in message news:a0ab68061e605@uwe...
I create ribbon but i cant make him to work( if i press some button on
ribbon
to open some form or report)

Here is a code.

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
ribbon startFromScratch="true"
tabs
tab id="MyTab" label="Kalkulacije"
group id="Kalkulacije" label="Kalkulacije"
button id="NovaKalkulacija" imageMso="DatasheetView"
size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" /
button id="StampajKalkulaciju" imageMso="FilePrint"
size="normal" label="Stampaj Kalkulaciju" onAction = "ButtonCallback"/
button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal"
label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/
button id="pRkALKULACIJE" imageMso="FilePrint" size="normal"
label="Pregle
Kalkulaciju" onAction = "ButtonCallback"/
/group
group id="TK" label="Trgovacka knjiga"
button id="OtvoriTK" imageMso="FileOpen" size="large"
label="Otvori Trgovacku knjigu" onAction = "ButtonCallback"/
button id="StampajTK" imageMso="FilePrint" size="large"
label="Stampaj Trgovacku knjigu" onAction = "ButtonCallback"/

/group
/tab
/tabs
/ribbon
/customUI



i make code for Button Call back but i don't know where can i put him

here is code

Sub ButtonCallback(control As IRibbonControl)
Select Case control.ID
Case "OtvoriTK"
DoCmd.OpenForm "Tgovacka_knjiga"
Case "NovaKalkulacija"
MsgBox "TRT"
End Select
End Sub

Other problem is how can i put my own pictures into button instead access
pictures.
And how can i write help to show when mouse cursor is on the button.

TNX



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.