Hi, I developed this code to prompt calendar.
When I use onclick event for a control in a form this coding works fine. But if I changed the form to datasheet and its name remains the same, when I run the code, it says it doesn't recognized the form name even though it is the same name except for I changed the form to datasheet.
Microsoft access can't find the form
DeptInvolveda refered to in a macro expression or visual basic code.
----
ElseIf tarikh = 5 Then
Forms!DeptInvolveda.AcDate = Text1.Value
Text1.Value = Format(Text1.Value, "dd-mmm-yyyy")
End If
Is there a workaround to solve this problem?
thanks
When I use onclick event for a control in a form this coding works fine. But if I changed the form to datasheet and its name remains the same, when I run the code, it says it doesn't recognized the form name even though it is the same name except for I changed the form to datasheet.
Microsoft access can't find the form
DeptInvolveda refered to in a macro expression or visual basic code.
----
ElseIf tarikh = 5 Then
Forms!DeptInvolveda.AcDate = Text1.Value
Text1.Value = Format(Text1.Value, "dd-mmm-yyyy")
End If
Is there a workaround to solve this problem?
thanks