form parameter in SQL-INSERT

J

jokobe

hi ng,

I' using code like this to user SQL-Querys with (forms)
parameters.

Set qdf = db.QueryDefs("my_query")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.name)

Set rst = qd.OpenRecordset(dbopendynset)
But it is not working with INSERT or UPDATE.
Any helpful hint?

Thanks in advance

jokobe
 
D

Dan Artuso

Hi,
The OpenRecordset method makes no sense with action queries
because they do not return a recordset.
Use the Execute method instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top