I use Access 2010 and create shortcut menu for right-click on reports. Each time I exit the application and re-open my file, the right-click does not work, and en error message popups.
I could not find an explanation and solution anywhere about this. May there be someone who may know the reason and a suggest a possible solution?
BR, Çağlar Durgun
https://learn.microsoft.com/en-us/office/vba/access/concepts/miscellaneous/create-a-shortcut-menu-for-a-form-form-control-or-report
https://learn.microsoft.com/en-us/office/vba/api/office.commandbars.add
Below is the format
CommandBars.Add (Name, Position, MenuBar, Temporary)
I've now realised that the example I've copied from learn.microsoft.com (the link in the question) had Temporary = True..!
Sorry for this, issue is now resolved! :)
Related
I've made a new content page, but forgot to type the name.. So I deleted it an made it again with proper name..
I have done it like this multiple times already, but this time something went wrong and I cannot compile.
I have this error message:
Severity Code Description Project File Line Suppression State
Error IDE1100 Error reading content of source file
'C:\Users\shark\source\repos\GalShare\GalShare\GalShare\Views\Page1.xaml' -- 'Could not find file
'C:\Users\shark\source\repos\GalShare\GalShare\GalShare\Views\Page1.xaml'.'. GalShare-XamlProject
C:\Users\shark\source\repos\GalShare\GalShare\GalShare\Views\Page1.xaml 1 Active
I have done nothing except the steps above.. What is the cause of this error and how can I fix it?
Cleaning the project did not solve, but closing and reopening solved my problem.
In addition to the answers of E.Zhao and messyprogrames, here a step-by-step walkthrough.
Clean Solution:
Navigation Bar > "Build" > "Clean Solution"
Unload project:
Choose your "problem project" on the right side within the solution explorer. Right mouse click > "Unload Project"
Reload project:
Choose your unloaded "problem project" again. Right mouse click > "Reload Project".
Opening and closing the solution wasn't helping, but unloading and reloading the project worked.
Actually, it is unnecessary to exit and reopen current solution, try to clean the error project, unload and then reload it again. hope it works for you.
In VS click your initials > Account Settings > and check there's no warning there asking you to re-fresh your credentials. It was this for me. After I re-entered my credentials, cleaned and rebuilt all was fine.
Unloading and reloading the project worked for me.
To reproduce this, in a new folder add a WPF user control with a accidental typo.
Rename with F2 or simply rename,
the code behind doesn't rename, so change that.
Initalize component gets a good old red squiggly!
create a new one with an appended number as you want to crack on...
delete the user control that you originally created.
You will get this error (well I did on enterprise edition Version 16.7.2)
Then as other contributors have suggest, remove the pain by unloading and reloading the project.
I was trying to troubleshoot why my default settings. Settings values weren't updating. Visual Studio showed me a recommended fix of refactoring "MySettings" to "Settings" and now every reference to My.Settings is broken and the word settings has turned green (used to be white).
I tried just hitting the undo button, and then closing without saving. But it didn't fix anything. Makes me think it isn't a project issue but a VS2016 issue.
My.Settings.ActiveDrive = My.Settings.Default.ActiveDrive
My.Settings.Save()
This is the code I was altering. I was trying to error proof my code and reset the value to the default to simulate a new user with no saved settings yet. Then I switched Settings to MySettings to see if that'd do anything and VS asked if I wanted to refactor MySettings to just Settings. I said yes... And now the code is broken.
I just want Settings to go back to normal. The way it worked before I hit "refactor MySettings".
I was actually able to figure it out.
For anyone out there that runs into this issue in the future (Since I found 0 results on google about this), you simply go to your solution explorer in the top right, click the drop down icon next to Settings.settings, double click on Settings.Designer.vb, ctrl+f and search for "settings" and rename any class designated "Settings" result back to "MySettings". Don't rename the other "Settings" appearances otherwise it'll break again.
Then your code will go back to having a read-only "settings" option and a class option called "MySettings".
When editing a CSV file in PhpStorm, I enabled "Edit as Table" and can not find how to close this mode. I do not know how to close the "Data" tab.
Help me please!
Linux Mint, Phpstorm v.2018.1.6
The "Edit as Table" creates a split pane. Assuming you dont have any other panes open, you can close them all by:
ctrl+shift+a
Search for Unsplit all
Ta-da
While still destructive (if you use multiple panes), it doesnt go full scorched earth policy like #jocull recommends.
I had a similar issue in WebStorm and reached this thread. After painful searching I found these buttons to toggle between views in the bottom left:
I looked all over but couldn't find a way to do this. In the end it was bugging me so much that I just dropped the Jetbrains/IntelliJ project files and recreated them. This is a very heavy hammer for this problem.
If you have a Git repository this is usually as simple as...
Close your project if it is open
git clean -idx and select the project files to remove (carefully, if you have stuff you don't want to clean out! this deletes things!)
Reopen the project and let it regenerate the project files from scratch
Tada! No more table editor mode. You may lose debugging profiles or other project specific settings, and YYMV :)
Does anybody have the ssrs_migration.rss file for RS.EXE (SSRS Reporting Sevices). Can't find it anywhere (Microsoft dropped the ball on this one) and I need to move a bunch of reports. Even if I you can post the VB as text so I can copy it. That'd be great. Thanks!
OR... If you know of a better way that'd be awesome too! I cannot deploy strait out from the project in my scenario.
You have to go to Github to get your file. That's a treat to work with too.
Click the Raw button (why they don't have a "download" button is beyond my comprehension) and then Safe the page.
Hope this helps.
I created a script in Outlook 2003 VBA that watches for new appointments, and sets them to tentative and no reminder as I create them. I find that seemingly at random, the VBA editor will open itself. It doesn't happen when I use the new script, but it did happen this morning when I un-hibernated my laptop, for example.
The editor doesn't pop up any runtime errors or highlight any lines in the script, it's just there as if I had pressed Alt-F11 to launch it. Sometimes I close other apps and see that it's been sitting back there for a while.
This behavior has only been occurring since I created this new script. Any ideas why this would occur?
As stated in, Microsoft Support Center:
"This problem occurs only if the Microsoft Visual Basic Editor window
is maximized."
Solution:
Un-Maximize Visual Basic Editor and close it.
And you are done!
If you have previously set breakpoints, it may be that you still have a phantom breakpoint. Try choosing "remove all breakpoints" and see if that clears the problem.
Check also that you have not chosen "Break on all errors" under options, and that your error handler is functioning properly.
Believe it or not, this is a known issue. Check out this MS Support link:
http://support.microsoft.com/kb/829059
I have the same problem and found it while I was looking for a solution. Since it gives no advice, I kept searching and came across your post. I will come back with an update if I find a solution.
The MS page linked by Jaquez hints at the answer; just make sure you don't run the editor maximized, and the problem should go away. If you restore it to a non-maximized state, then resize it to take up the whole screen, it should remember its position.
It's a pain if you only have a small screen, but on a normal large monitor it works fine, and solved the problem for me.
I have the same problem, except that it only occurs when I've gone in and unlocked the VBA project for editing and haven't restarted Outlook. It seems to open up when I get a new email (that's when my VBA runs) so basically I just have to restart Outlook and lock the project back up.
Sorry I don't know what's really causing it, but locking the VBA project should fix the problem...
My solution was to search for the .otm file of my VBA project. It was stored under data\microsoft\outlook. I closed Outlook and deleted the .otm file. Restarted Outlook and it was solved.
Just wanted to add that I was running into a phantom breakpoint issue with VBA in excel. Clearing all breakpoints did not work for me, but I resolved it as follows: Copy all content from offending module into a text file. Delete module. Re-create module. Copy back in all text. Save. Phantom breakpoint gone.