Quote:
Originally posted by Rahul2kind
But I required the syntax so that in a single command or sets of command all the qty is set to 0
This "Update item set qty = 0 " is working when I use directly in Visdata (Visual data manager in VB) sql statement, but through vb program it is given error when I refresh.
My syntax
f1.strRSname = "update item set qty= 0"
Data2.DatabaseName = f1.strDBname
Data2.RecordSource = f1.strRSname
Data2.Refresh
----------
:confused:
think the problem is that u have to do an Execute on the SQL statement, not try to set it as the recordsource of a datacontrol.