can't get vba to show code for all buttons [duplicate] - vba

This question already has an answer here:
How to view code for all subs in a module at the same time
(1 answer)
Closed 6 months ago.
Working in VBA in Access
In one of my databases "General" in the drop down shows the code for all buttons.
For some reason this database does not, and I have to manually select each button... ie RunFDE, RunQP1
Not sure how to fix it.
Want to see code for all buttons at the same time.

Figured it out.
Bottom left has Procedure View and Full Module View.
Full Module View is what I want.

Related

Trust Settings MS Excel [duplicate]

This question already has answers here:
How to get rid of VBA security warning
(5 answers)
Closed 6 years ago.
Is it possible to programmatically disable ENABLE CONTENT Security message bar. I have a spreadsheet with some macros and some forms, however, even though i save the spreadsheet with the Trust Settings set to NEVER SHOW INFORMATION ABOUT BLOCKING SECURITY, it still pops up if i send the spreadsheet to someone else to open. I'm try to permanently disable it, or add some code to THISWORKBOOK_OPEN so that whenever it opens, it never prompts the user to click the ENABLE CONTENT button
Edit the problem i have is that i have a form tha is supposed to appear before users are able to use the spreadshet but in this case when they open it they firsy havento click enable content before the log in form appears .....is there a waynaround it?
No. Definitely Not. Never. Ever.

Microsoft Access - Navigation form is causing my query to not work

I got a form that works amazingly by itself, but the second I attach it to my navigation form. I start to get prompted for user input since this line
[Forms]![frm_addReceiveReportInformation]![cbo_PurchaseOrderID]
no longer works due to the current form becoming subform in the navigation form which was explained in
ACCESS 2010 Navigation Form Query Property
I can't seem to figure a way out of using the !form since I absolutely need to retrieve the ID from a combo box to update another combo box.
I tried multiple ways of using the !forms but I can't seem to wrap my head around how to retrieve my information that I am seeking.
I got the 2 way navigation menu(vertical + horizontal tabs). Anyone got advice or has encounter this problem in the pass, who can direct me down the right path.
To access a field inside a form, which is attached to a navigation tab, you should use the following structure:
[Forms]![YourNavigationTab]![NavigationSubform].[Form]![YourField]
Note: tested in MS Access 2013
In order for queries that contain form references to work, the form must be fully loaded. I think the problem you are experiencing is that the query in the Row Source of the Part Code combo is being evaluated before the form is loaded and therefore you are being asked to input the parameter value.
You can work around this by leaving the Row Source property of the Part Code combo empty until it gets focus for the first time, something like:
Private Sub cboPartCode_GotFocus()
If Len(cboPartCode.RowSource) = 0 Then
cboPartCode.[RowSource] = "Your Query"
cboPartCode.Requery
End If
End Sub
I sometimes just put a button on the navigation form which opens the desired form as a standalone form. It is probably not the neatest solution but it does work.

How to use savefiledialog in vb.net -Please help me [duplicate]

This question already has an answer here:
How do I use savefiledialog in vb.net
(1 answer)
Closed 9 years ago.
I have a program called TextEditPro and I just started it, I'm running into a problem.
When I had the code for clicking Save As... I don't know how to use the savefiledialog so when you click Save As it will pop up!
Any help?
Thanks!
Look at the code in http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/ec63bda3-cb9f-438f-8d3d-43eb858299aa. I hope it helps. The code works.

Auto run good Macro before User Macro? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to protect cells in Excel but allow these to be modified by VBA script
any chance to run a specific marco [GodMarco] before any marco [UserMarco] which fired by user?
CASE I
I have a worksheet, which have lots button to do different action by user.
I have normal cells to let user input data, and have hidden cells to do the dirty work.
And since user may user [arrow] or [tab] to circle through, I have to protect the sheet.
And made them not selectable.
And now VBA stopped.
I know I can add vba codes to unprotect and protect again and again, but I think it is stupid to add them to each marco.
So can it be something like GODMODE that before each marco fired by user, run GODMARCO1, and after user marco, run GODMARCO2?
[DONE, THANK YOU.] CASE II
Or can we get some cells not selectable by user but selectable by VBA?
THANK YOU VERY MUCH.
Open the VBA window (Alt + F11). In the property window of the sheet you want to protect you will see the "ScrollArea" property which will limit the area that can be selected by the user, set it to whatever range you want to make accessible to your users.

Show form without losing focus [duplicate]

This question already has answers here:
Show a Form without stealing focus?
(19 answers)
Closed 6 years ago.
I've created a small form that acts like the office notifications (fades in\out above the notification icon tray)
I'm having problems showing this form, I want to display it without the focus being taken from my main application (or any other form), I've managed to get the attached code doing roughly this, (using Me.Activate to take back focus) But this isn't great - focus switches for an instant plus I want to show the form from various areas in my application...
Dim frm2 As New frmNotification()
frm2.TopMost = True
frm2.Show()
Me.Activate()
Any Ideas?
A similar question has been answered here.
Show a Form without stealing focus?
The code is in c#, let me know if you need help in converting it to vb.net. Sorry for the delay.