Solved

Access 2013: API code to put hidden database icon in taskbar?

Posted on 2016-09-01
8
79 Views
Last Modified: 2016-09-04
I have Access 2013 databases with hidden database windows and popup, modal forms and it works, but there is no icon in the taskbar for users to switch between applications.
I found this : http://stackoverflow.com/questions/26594043/access-application-hidden-application-window-with-form-taskbar-icon

I can't get it to work. Is it necessary to include a reference in order to use API functions?
Thanks In Advance.
0
Comment
Question by:machine_run
8 Comments
 
LVL 57
ID: 41780041
<<I can't get it to work. Is it necessary to include a reference in order to use API functions?>>

No, no references.  Your code should compile fine.

Would you consider putting it in the system tray by the date and time?

Jim.
0
 
LVL 1

Author Comment

by:machine_run
ID: 41780091
When debugging :

WStyle = GetWindowLong(frmHwnd, GWL_EXSTYLE)  
Error = GWL_EXSTYLE variable not defined.

WStyle = WStyle Or WS_EX_APPWINDOW
Error = WS_EX_APPWINDOW variable not defined.

Others also.
0
 
LVL 57
ID: 41780123
<<WS_EX_APPWINDOW>>

 You missed copying something then or they did not post the full solution.

 Those are constants  or type structures that are required.  I would dig them out for you, but I'm very short on time at the moment and you should be able to find them on-line easily enough with a quick google search on either the constant or the API call.

Jim.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 19
ID: 41780374
>"I have Access 2013 databases with hidden database windows and popup, modal forms and it works, but there is no icon in the taskbar for users to switch between applications."

are you are opening a second database from VBA? if so, what code are you using?
0
 
LVL 1

Author Comment

by:machine_run
ID: 41780446
crystal, no, just opening one.
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 41783775
If you just want to have a taskbar icon to open this database, try the technique in this Access Archon article (Making an Access Database Taskbar Item).  The steps are listed below (shorn of screen shots); the full instructions are in the attached article.  (No API calls needed!)

1.      Create a folder for the new toolbar – I made one called Taskbar Items under the default folder for my user name.
2.      Right-drag the database to the new folder, and select Create Shortcut Here from the context menu when dropping it.
3.      Edit the shortcut name as desired.
4.      Right-click the taskbar and select New toolbar…
5.      Select the Taskbar Items toolbar:
6.      The new toolbar appears on the right side of the taskbar, with the toolbar name displayed:
7.      Unlock the Taskbar if it is locked:
8.      Right-click the toolbar name and uncheck the Show Text and Show Title items:
9.      Now you will see a small Access icon representing the database, that you can click to open the database, just as in Windows XP:
Access-Archon-Column-237----Making-a.doc
0
 
LVL 1

Author Comment

by:machine_run
ID: 41784092
Helen_Feddema,

This solution is GLORIOUS!
I have each database in the taskbar (separate folders) with custom icons and NO API spaghetti!

THANK YOU THANK YOU
0
 
LVL 1

Author Closing Comment

by:machine_run
ID: 41784094
EXCELLENT!!!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question