Default data

L

LtFass

I have two controls a my formone is txtEtime, the other is txtMtime.
What I want is when the data (in this case a time value) is entered in the
control txtEtime I want it to be the default value in the txtMtime control.
both controls are on the same form call "frmLog" I have tried
"FORMS!frmLog!txtEtime" and get a #Name? in the control
 
M

Marshall Barton

LtFass said:
I have two controls a my formone is txtEtime, the other is txtMtime.
What I want is when the data (in this case a time value) is entered in the
control txtEtime I want it to be the default value in the txtMtime control.
both controls are on the same form call "frmLog" I have tried
"FORMS!frmLog!txtEtime" and get a #Name? in the control


A control's DafaultValue property is applied as soon as the
record has been dirtied, so that idea won't work (the record
was dirtied when the user entered the value of ETime).

However, I believe it will be just as effective to just set
the value of MTime in the ETime control's AfterUpdate event:

Me.txtMTime = Me.txtETime

If I've misunderstood your question, please post back.
 
L

LtFass

I tried your suggestion and promtly recieved the message macro not found!!
ummm I finished a class today where I asked this question and the instructor
gave me the answer and it worked for her in class however when I applied it
to my program it broke!!! and I am not able to reach the instructor tonite
any help is realy appreciated
 
M

Marshall Barton

LtFass said:
I tried your suggestion and promtly recieved the message macro not found!!
ummm I finished a class today where I asked this question and the instructor
gave me the answer and it worked for her in class however when I applied it
to my program it broke!!! and I am not able to reach the instructor tonite
any help is realy appreciated


It sounds like you entered my suggested statement in the
AfterUpdate property insted of in the AfterUpdate event
procedure.
 

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