473,464 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing Ribbons for different forms

Access 2007;OS MS XP. Visual Basic
How do I change the Ribbon when I close 1form and open another?

Have started trying to use the Ribbon; have customized the Ribbon to a limited extent.

I read that I could simply select a different Ribbon, ie Ribbon2 in the Form's properties "Other" tab on Ribbon Name. However, this did not change the from Ribbon1->Ribbon2. I had also emptied the combobox: MS Icon->Access Options->Current Database->Ribbon & Toolbar Options->Ribbon Name.

Do I have to write some code to deal with this problem?

Thanks MSammer.
Feb 18 '08 #1
2 9864
JustJim
407 Expert 256MB
Access 2007;OS MS XP. Visual Basic
How do I change the Ribbon when I close 1form and open another?

Have started trying to use the Ribbon; have customized the Ribbon to a limited extent.

I read that I could simply select a different Ribbon, ie Ribbon2 in the Form's properties "Other" tab on Ribbon Name. However, this did not change the from Ribbon1->Ribbon2. I had also emptied the combobox: MS Icon->Access Options->Current Database->Ribbon & Toolbar Options->Ribbon Name.

Do I have to write some code to deal with this problem?

Thanks MSammer.
Hi,
Good question. I don't have an answer, but I would like to know how it's done also.
PS we used to have a "subscribe" button that would save me typing all this and getting your hopes up and also taking you out of the "unanswered questions" list, but now we don't... Sorry

Jim
Mar 3 '08 #2
Megalog
378 Expert 256MB
This can be done pretty easily, without any special coding.

Assuming you have a default ribbon loading up with the database, and you want a specialized ribbon for a certain form or report:

Make sure your ribbons are stored in the 'USysRibbons' table, and you validate them, either by loading them one by one to verify they work, or by downloading and testing them with the Office 2007 Custom UI Editor tool, available at http://openxmldeveloper.org/articles...mUIeditor.aspx.

In design view, go to Form Properties > Other > Ribbon Name
Select the ribbon you want as that form's default.

Now, this ribbon will open in ADDITION to your default ribbon. If nothing happens, then the ribbon is either exactly the same as the default, or it's invalid. (only takes one bad space or lowercase letter to cause the ribbon to fail sometimes!)
If you want -only- that new ribbon to show, you'll need to set within the XML of the new ribbon the following:
<ribbon startFromScratch="true">

If you need to get more dynamic than this, I really suggest reading through the three-part walkthrough at MSDN. This covers all of office 2007, but has Access-only examples as well.

http://msdn2.microsoft.com/en-us/library/aa338202.aspx
Mar 3 '08 #3

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

Similar topics

1
by: Bryan | last post by:
I have this function below function checkLength(field, nextField) { var letters = document.form1.elements.value.length +1; if (letters <= 2) {document.form1.elements.focus()} else...
0
by: Bamse | last post by:
Hi, I want to synchronize (the Master-Details concept) 2 grids in 2 different forms by using BindingContext. is this possible?
0
by: Newbie | last post by:
hi all, i am doing a project which requires me to provide a security login feature. i understand that access has a user level security feature but i could not use it coz i'm tested on my...
1
by: bearmstrong | last post by:
Here's what i need to do, keep in mind that I'm new to access and have learned coding is the same as excel. I have 2 different types of users, those that are users and those that are admin. I have...
1
by: saqib01 | last post by:
Please help me in knowing that how can I add values from different forms, i mean i want to add values from form1 and form2 and show the result in form 3
1
by: erri | last post by:
Is there a way to split the contents of one table into different forms (i.e. subform1 = LastName A-F, subform2 = LastName F-M, etc) without having to make queries?
1
by: Skarthi | last post by:
i write a oracle stored procedure in login screen.. its two different type of login employee and employer...in front end assign the procedure in class file... how to call different forms my...
2
cindy2
by: cindy2 | last post by:
Hi everybody, In my vb2005-project I have a subprocedure (in a MODULE) like this: Public Sub MakeInputArray() Input(0) = Form2.TextBox1.Text Input(1) = Form2.TextBox2.Text End Sub...
3
by: Zabooster | last post by:
Hi all, I have to submit a project in 2 days' time and am currently challenged trying to send information inputted into textboxes, radiobuttons and checkboxes present in different forms to a sigle...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.