active form name & active control name

G

Guest

Hi,

I've a hidden form that opens when the database opens,i have 2 unbound
controls on this form,i need to:
* display the active form name in the first unbound controls .
* display the active control name in the first unbound controls .

Is it possible?
 
L

Larry Daugherty

You can place the values there from each form and each control. You
could write a function for just the controls that would pass the Form
name and the Control name for *each* control in your application:
x=TraceMe(Me.Name, Me!ThisControl.Name). That will be a lot of code.
If you're just starting this application you might be able to kluge up
something workable with MZTools. Note that if you're trying to do
this for error tracing purposes you can already use MZTools to do this
to good effect.

You will only be able to *display* what's in those unbound controls on
a hidden form via a visible object.

If you explain what you're trying to achieve in the real-world then we
might be able to better help you.

HTH
 
G

Guest

Thank you Larry..
Actually i want to create a code to close my databse after a certain idle
time,i tried many codes but they are not working,so i was trying to get
something easy....
 

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