mfaqueiroz
Registered User.
- Local time
- Today, 07:01
- Joined
- Sep 30, 2015
- Messages
- 125
Hi everyone! 
I have two fields:
!MeDate: dd-mm-yyyy hh:mm:ss
!MeMs: ms
State: OPEN or Close
When I found the close state I want to go back from my Date 3,5 seconds to see what is before this register.
Set dbs = DBEngine(0)(0)
Set Me!TabCloseOpen = dbs.OpenRecordset("!Me table with Open/Close",
Me!TabCloseOpen .MoveFirst
Do While Not PorInst.EOF
State =!Me.State ' Open or close
If State= "Close" Then ' if is close i want to see all the registers that happened in a space of 3,5 s before
Date=!MeDate
Rtums=!MeMs
Dif = DateDiff("s", Date, 3) ' difference of 3 s
Dif= Dif * 1000 - 500 ' difference of 500ms
...well and now? how can i call the registers than happened 3,5 seconds before? anyone have some suggestions?
Grateful for your help!

I have two fields:
!MeDate: dd-mm-yyyy hh:mm:ss
!MeMs: ms
State: OPEN or Close
When I found the close state I want to go back from my Date 3,5 seconds to see what is before this register.
Set dbs = DBEngine(0)(0)
Set Me!TabCloseOpen = dbs.OpenRecordset("!Me table with Open/Close",
Me!TabCloseOpen .MoveFirst
Do While Not PorInst.EOF
State =!Me.State ' Open or close
If State= "Close" Then ' if is close i want to see all the registers that happened in a space of 3,5 s before
Date=!MeDate
Rtums=!MeMs
Dif = DateDiff("s", Date, 3) ' difference of 3 s
Dif= Dif * 1000 - 500 ' difference of 500ms
...well and now? how can i call the registers than happened 3,5 seconds before? anyone have some suggestions?
Grateful for your help!