473,385 Members | 1,593 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,385 software developers and data experts.

Add button to Ribbon to reload form

52
Hello! I want to put a button in a custom group on my custom tab of the Ribbon (Access 2010) that will simply reload the original form that loaded when the database opened (what was in Access Options, Current Database, Display Form:). I am doing a lot of development, and everything keys off of this main form. It's making me crazy to have to hunt it out in the Navigation Pane and re-open it over and over.

Thanks for any pointers!

Melody
Oct 9 '12 #1
3 3334
zmbd
5,501 Expert Mod 4TB
Access Ribbon is a real treat to program.
Here's what I would do for a short term solution.

Ribbon
Home
Create
Macro
Save the macro as Autokeys
On the right (by default) is a table
double click Submacro
in the name enter ^{F12}
click on the dropdown list in the add action and select openform.
Enter the information in the boxes
Save

Now whenever you press {CTRL}{F12} the form will open with the options you set.

I actually trap the {F1} key in my applications with this and open my own "Help" form ;-)

Ribbon design takes alot more effort and if you are REALLLLLLLY interested in it then I'll get the links togeither for you
Oct 9 '12 #2
Mmmel
52
Thanks! I will give this a go.

And, I'm not reeeeeeeally interested, so please don't go to the extra trouble. You'd think that it would be easier, eh? :)

Thanks again!
Oct 9 '12 #3
zmbd
5,501 Expert Mod 4TB
One would think that Ribbons would be easier to build.

At least in Access, there is a hidden system table that the XML is stored in that you can access (ha funny) and then there is a callback code between the XML and VBA and you have to learn the XML schema/

In Excel and Word, the XML is hidden within the new file format; thus, you need to either uncompress and pull their files apart or you need yet another program to get at the XML within the file. I have a COM addin for our EXCEL used in the lab that handles routine files and that was a real treat and a word document that has some interesting features and that was even worse... and a whole different program to get at the XML in there!

MS really didn't help the end user!
Oct 9 '12 #4

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

Similar topics

1
by: Billy Jacobs | last post by:
Is there a way to make a button on a web form the default button so that when the user hits the enter button the code for that button executes? I have a web page Login.aspx where I have only 1...
2
by: Pawel | last post by:
Hello All I have a submit button in my form. It gets focus (is activated by ENTER) everytime any text inputs are edited. So, if the user press ENTER before finishing all form, the form is...
3
by: CroDude | last post by:
Hi all! I've made a button from scratch derived from a Control class. The main reason why Control and not Button class is used for inheritance is that when deriving from a control class it's...
8
by: helpful sql | last post by:
Hi, I have 2 radio buttons on my Windows form control. The radio button's CheckedChanged event disables or enables other controls on the form based on the value of the Checked property. When the...
3
by: gazelle04 | last post by:
Which happens first AfterUpdate event of a form or Clicked event of a button on a form. I have these codes on an AfterUpdate of a form: If UpdateDone = True Then ...
5
by: freelancex | last post by:
Hi, Im new to this forum, and new to scripting in general. Im an ICT Technician for a high school and i am designing a Form in visual basic 2005. The intended purpose of the Form, is to prevent...
1
by: QCLee | last post by:
Hello Sir, Im here again asking for help. I have a form and a subform relate to HVAC Windward Table. i have a SAVE button on the form that when clicked it saves data on the HVAC Windward Table but...
14
by: white lightning | last post by:
How to have <select onchange="this.form.submit()"and also a Submit button on one form? I have something like this: <form action="<?php $_SERVER; ?>" method="post"...
16
by: Steve | last post by:
I am working on a database that has a main menu, many sub-menus and some sub-sub-menus. They are all forms that have numerous command buttons on them to open forms and reports in the database. The...
3
by: extrym | last post by:
I have 2 forms, "Staff" and "Security" (without the ""'s). The Staff form has the following fields: staff_ID staff_name staff_number staff_DOB priority The Security form contains the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.