OLE Time Control

2009-08-19 Thread Jeff Johnson
I am using an OLE time spinner on a form. The class is MSComCTL2.DTPicker2. I have code in the lostfocus that updates a field in the table. If I click another control on the form the lostfocus fires and the field is updated. If I tab off of the OLE control the lostfocus does not fire and th

Re: OLE Time Control

2009-08-19 Thread MB Software Solutions, LLC
Jeff Johnson wrote: > I am using an OLE time spinner on a form. The class is > MSComCTL2.DTPicker2. I have code in the lostfocus that updates a field > in the table. If I click another control on the form the lostfocus > fires and the field is updated. If I tab off of the OLE control the >

Re: OLE Time Control

2009-08-19 Thread Jeff Johnson
Thanks Michael. Here is what I found. I have hours and minutes activated. If I change hours and tab out, the value of the control does not change. If I change hours and right arrow over to the minutes and tab out, the value changes. The lost focus is firing but the value of the control is

RE: OLE Time Control

2009-08-20 Thread Eurico Chagas Filho
Hi I made a class with the activeX, dtapicker. In the init of the class; this.oBject.value = datetime() this.customFormat = "whatever" In the object in my form, dtapicker1. In the change method; replace myDtaTime with this.oBject.value IN myDbf And it worked for me. HTH, E.

Re: OLE Time Control

2009-08-20 Thread MB Software Solutions, LLC
Jeff Johnson wrote: > Thanks Michael. Here is what I found. I have hours and minutes > activated. If I change hours and tab out, the value of the control does > not change. If I change hours and right arrow over to the minutes and > tab out, the value changes. The lost focus is firing but t

Re: OLE Time Control

2009-08-20 Thread Jeff Johnson
The change method did the trick! Thanks, Jeff Jeff Johnson j...@san-dc.com SanDC, Inc. 623-582-0323 Fax 623-869-0675 Eurico Chagas Filho wrote: > Hi > > I made a class with the activeX, dtapicker. > In the init of the class; > this.oBject.value = datetime() > this.customFormat = "whate

Re: OLE Time Control

2009-08-20 Thread Jeff Johnson
Michael: The change method worked the way I wanted it to work. Thanks, Jeff Jeff Johnson j...@san-dc.com SanDC, Inc. 623-582-0323 Fax 623-869-0675 MB Software Solutions, LLC wrote: > > I'll have a look if you want me to...just zip and send. > _