I
ipk*
hello,
can anybody help me out with this one:
here is what i do:
i filter a form and retrieve the resulting filter via me.filter:
here the resulting filter
((query_constructs_show.ProteinName Like "*tkt*"))
i then want to pass this filter to vba
StrSQL = "UPDATE tbl_constructs SET IsSelected = -1 WHERE " & Me.Filter & " ;"
which produces this:
UPDATE tbl_constructs SET IsSelected = -1 WHERE
((query_constructs_show.ProteinName Like "*tkt*")) ;
the where statement by itself works fine, if i paste it into an sql query.
but, when i try to execute the update query like this:
CurrentDb.Execute StrSQL, dbFailOnError
i get an error about two parameters expected and only one passed. the
problem to me clearly seem the double quotes in the update query (i may be
off here), but i am not sure how to resolve this, i.e. how to construct the
update query properly before passing it to currentdb.execute.
could anybody help me out here ?
this has to be easy ...
ingo
can anybody help me out with this one:
here is what i do:
i filter a form and retrieve the resulting filter via me.filter:
here the resulting filter
((query_constructs_show.ProteinName Like "*tkt*"))
i then want to pass this filter to vba
StrSQL = "UPDATE tbl_constructs SET IsSelected = -1 WHERE " & Me.Filter & " ;"
which produces this:
UPDATE tbl_constructs SET IsSelected = -1 WHERE
((query_constructs_show.ProteinName Like "*tkt*")) ;
the where statement by itself works fine, if i paste it into an sql query.
but, when i try to execute the update query like this:
CurrentDb.Execute StrSQL, dbFailOnError
i get an error about two parameters expected and only one passed. the
problem to me clearly seem the double quotes in the update query (i may be
off here), but i am not sure how to resolve this, i.e. how to construct the
update query properly before passing it to currentdb.execute.
could anybody help me out here ?
this has to be easy ...
ingo