I have an update query which works, it is the following:
UPDATE products SET products.branch0 = [stock], products.items0 = [items];
However, when i want to express it with a function it seems that it doesnt work.
My funnction is the following:
Public Function MyUpdate()
Dim strSQL As String
strSQL = ” UPDATE products SET products.branch0 = [stock], products.items0 = [items]”
CurrentDb.Execute strSQL
End Function
Why is it so? and why the function is wrong?