Hello all.
Im trying to update a record in a table based on some values from a from.
The idea is to update an issue status on a table where issue reference no. & assigned date/time matches between the table & form data.
Here's my sql-
DoCmd.RunSQL ("UPDATE [workload] SET [workload].issue_status= forms![main]!issue_status WHERE [workload].issue_ref ='" & Forms![main]!issue_ref & "' And [workload].issue_assigned ='" & Forms![main]!issue_dist_date & "';")
for your reference, issue_assigned & issue_dist_date are both in date/time format.
problem is- when i run this, it shows error Data type mismatch in criteria expression. is there anything wrong with my syntax?
on a deadline here so w'd really appreciate a prompt solution.
Thanx in advance.
Im trying to update a record in a table based on some values from a from.
The idea is to update an issue status on a table where issue reference no. & assigned date/time matches between the table & form data.
Here's my sql-
DoCmd.RunSQL ("UPDATE [workload] SET [workload].issue_status= forms![main]!issue_status WHERE [workload].issue_ref ='" & Forms![main]!issue_ref & "' And [workload].issue_assigned ='" & Forms![main]!issue_dist_date & "';")
for your reference, issue_assigned & issue_dist_date are both in date/time format.
problem is- when i run this, it shows error Data type mismatch in criteria expression. is there anything wrong with my syntax?
on a deadline here so w'd really appreciate a prompt solution.
Thanx in advance.