Hi everyone... am i missing something in the codes? it does not add record or i mean it does not append realtime, it appends new record when the application is closed.... Please help... Thanks and God Bless....
SELECT 3
araw = CDOW(DATE())
notif = tsulat.ctr - 1
x = " "
if notif = 0 or notif = 2
x = "IN"
ELSE
x = "OUT"
ENDIF
APPEND BLANK
REPLACE rek.idnum WITH this.value
REPLACE rek.time WITH DATETIME()
REPLACE rek.lname WITH this.parent.text2.value
REPLACE rek.kol WITH x
REPLACE rek.dey WITH araw
this.value = " "
this.parent.text2.value = ""
this.Parent.text3.value = ""
RETURN 0
SELECT 3
araw = CDOW(DATE())
notif = tsulat.ctr - 1
x = " "
if notif = 0 or notif = 2
x = "IN"
ELSE
x = "OUT"
ENDIF
APPEND BLANK
REPLACE rek.idnum WITH this.value
REPLACE rek.time WITH DATETIME()
REPLACE rek.lname WITH this.parent.text2.value
REPLACE rek.kol WITH x
REPLACE rek.dey WITH araw
this.value = " "
this.parent.text2.value = ""
this.Parent.text3.value = ""
RETURN 0