A
Ali
Hi -
I am new to VBA so please bear with me. I am trying to update a table
through a sub-form and am trying to use a sql statement to do this for
me.
When I run this code --
updatesql = "UPDATE tblMultipleCounties SET tblMultipleCounties.Cnty =
""" & Me!CountyName & """, tblMultipleCounties.County = Me!CountyCode,
tblMultipleCounties.[Updated?] = Yes WHERE (((tblMultipleCounties.[Log
Number])=Me.Parent.[LogNo]));"
I get a runtime error 3061 "Too few parameters. Expected 1." Anyone
know how I should fix this?
Thanks!
I am new to VBA so please bear with me. I am trying to update a table
through a sub-form and am trying to use a sql statement to do this for
me.
When I run this code --
updatesql = "UPDATE tblMultipleCounties SET tblMultipleCounties.Cnty =
""" & Me!CountyName & """, tblMultipleCounties.County = Me!CountyCode,
tblMultipleCounties.[Updated?] = Yes WHERE (((tblMultipleCounties.[Log
Number])=Me.Parent.[LogNo]));"
I get a runtime error 3061 "Too few parameters. Expected 1." Anyone
know how I should fix this?
Thanks!