E
edisonl via AccessMonster.com
Hi guys,
Help! My SQL statement suddenly fails me!
I had an Leave application running at the back activate by on_click(), so the
on_click button will activate different function depend on type of leave
choose by the user, Eg: Medical Leave will activate submitmedicalleave(),
Annual Leave will submit submitannualleave().
All of the submit () will have insert statement as indicate below to insert
into pendingleave_table awaiting for their superior approval. Before the
application goes live, it was tested all submit(0 works well, but suddenly it
doesn't seems to work anymore ( the insert statement can't go into
pendingleave_table !)
I had tried to do a compressed and repaired but it still remain the same for
the defective potion.
____________________________________________________________________________________
strsql = "INSERT INTO PendingLeave_Table(UserID,LeaveType,AppliedTime,
AppliedDate,AppliedBy,[FromDate],[ToDate],TotalDays,Approve,[ApprovedTime],
[ApprovedDate],Remarks) VALUES('" & _
Forms!login_form!ApplicantUserID_Text & "','" & Forms!login_form!
LeaveType_ComboBox.Value & "','" & applytime & "','" & applydate & "','" & _
Forms!login_form!UserName_Text & "','" & FromDate_Text & "','" & ToDate_Text
& "','" & TotalDay_Text & "',0, '0:00', '00/00/00' ,'" & Remarks_Text & "');"
DoCmd.SetWarnings False
CurrentDb.Execute strsql
____________________________________________________________________________________
Is any one willing face with similar problem or got some hint to my issue ?
Regards & God Bless, Edison
Help! My SQL statement suddenly fails me!
I had an Leave application running at the back activate by on_click(), so the
on_click button will activate different function depend on type of leave
choose by the user, Eg: Medical Leave will activate submitmedicalleave(),
Annual Leave will submit submitannualleave().
All of the submit () will have insert statement as indicate below to insert
into pendingleave_table awaiting for their superior approval. Before the
application goes live, it was tested all submit(0 works well, but suddenly it
doesn't seems to work anymore ( the insert statement can't go into
pendingleave_table !)
I had tried to do a compressed and repaired but it still remain the same for
the defective potion.
____________________________________________________________________________________
strsql = "INSERT INTO PendingLeave_Table(UserID,LeaveType,AppliedTime,
AppliedDate,AppliedBy,[FromDate],[ToDate],TotalDays,Approve,[ApprovedTime],
[ApprovedDate],Remarks) VALUES('" & _
Forms!login_form!ApplicantUserID_Text & "','" & Forms!login_form!
LeaveType_ComboBox.Value & "','" & applytime & "','" & applydate & "','" & _
Forms!login_form!UserName_Text & "','" & FromDate_Text & "','" & ToDate_Text
& "','" & TotalDay_Text & "',0, '0:00', '00/00/00' ,'" & Remarks_Text & "');"
DoCmd.SetWarnings False
CurrentDb.Execute strsql
____________________________________________________________________________________
Is any one willing face with similar problem or got some hint to my issue ?
Regards & God Bless, Edison