SetWindowText to work in Access 2007

A

AlexML

Any idea on how to get SetWindowText to work in ACC2007?
Call to that API always gets overlaid with whatever is in the Application
Title property. Also, I do not want to use syscmd obj..

Dim INSTANCE_CAPTION As String
INSTANCE_CAPTION = "test_caption"
call SetWindowText(Application.hWndAccessApp, INSTANCE_CAPTION)

Intefrestingly that FindWindow(vbNullString, INSTANCE_CAPTION & vbNullString)
returns the value for INSTANCE_CAPTION.. For some reason the caption are of
access main window is overlaid with some other object handle..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top