473,412 Members | 4,519 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

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 9858
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...

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.