Lifting data from textboxes a la Spy++

  • Thread starter Thread starter Dytiscus
  • Start date Start date
D

Dytiscus

I have a Access Form with 4 fields in it. I want to read the data that is
displaying in them in the way Spy++ does it. The problem is that it seems
that those "Edit boxes" are not standard child windows. When I use Spy++ on
the form and move the window finder on one of the fields, I only get the
outer window to be highlighted. I was expecting each field to be in a
window, but that does not seem to be the case.
Am I correct in suspecting that those "Edit boxes" are not standard, but are
custom windows in which Access draws or types the data ?
HHJ
 
Yes, you're correct that text boxes in Access are not the same as text boxes
in, say, VB or VC++. In fact, the whole form model is different.
 
Thank you Doug for the confirmation. Now for the next question. What, then
does Access use to display the data?

Does Access simply draw rectangles and write to the Bitmap of the form ?

The reason for all this is that I want to be able to take any application
written in Access and lift the data that is in those "Text Boxes" (Or
whatever they are).

Though you have now confirmed that they are not Controls (such as the ones
one would place on a VC++ form), would it still be possible to read the
data, given the location on the form.

Thank you in advance

HHJ
 
A textbox has an hWnd, but only when it has the focus.

Why on earth are you trying to do this?

TC
 
Use Automation to get a pointer to the current instance of Access. Then
enumerate through the controlsource for each of the controls to access
their contents.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top