AOGFADUGBA
Board Regular
- Joined
- Sep 30, 2015
- Messages
- 74
Hi all, i have a command button which is meant to replace a number of fields with a null value in a link table.
the problem is all other fields are replaced with the null value except the date field. below is the vba code i used
Private Sub Command501_Click()
Status = "UNPAID"
DeptNo = ""
PVNo = ""
VoteBook_subform2.Form.[Voucher No] = ""
VoteBook_subform2.Form.[RSubHead] = ""
VoteBook_subform2.Form.[Date] = "null"
VoteBook_subform2.Form.[Head] = ""
VoteBook_subform2.Form.
the problem is all other fields are replaced with the null value except the date field. below is the vba code i used
Private Sub Command501_Click()
Status = "UNPAID"
DeptNo = ""
PVNo = ""
VoteBook_subform2.Form.[Voucher No] = ""
VoteBook_subform2.Form.[RSubHead] = ""
VoteBook_subform2.Form.[Date] = "null"
VoteBook_subform2.Form.[Head] = ""
VoteBook_subform2.Form.
Code:
= ""
VoteBook_subform2.Form.[Particulars] = ""
VoteBook_subform2.Form.[Payments] = ""
End Sub
i keep getting error from the date field even when i replaced the "null" with "". please what am i doing wrong???
Thanks
Last edited: