Default data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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
 
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.
 
Back
Top