Had to Change a query that I got help on from here, here is the new version
udq = _
"UPDATE BayCounts " & _
"SET [Count]=" & rsdbo.Fields("StCount") - rsdbo.Fields("SumOfBalls") & _
"WHERE ID=" & CInt(Right(rsdbo.Fields("Bayno"), 2))
Syntax error (missing operator) in query expression '98WHERE ID = 1'
All the fields in the query return the correct results in the immediate window.
Thanks
jpl
udq = _
"UPDATE BayCounts " & _
"SET [Count]=" & rsdbo.Fields("StCount") - rsdbo.Fields("SumOfBalls") & _
"WHERE ID=" & CInt(Right(rsdbo.Fields("Bayno"), 2))
Syntax error (missing operator) in query expression '98WHERE ID = 1'
All the fields in the query return the correct results in the immediate window.
Thanks
jpl