Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stored query

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Hi guys,

I have a stored query in Access that works fine...
Code:
PARAMETERS qrystr text(255)
Select * from mytable WHERE myfield = qrystr
but i tried to do something similar for the update statement...

Code:
PARAMETERS qrytstr text(255), id int
UPDATE mytable
set myfield = qrtystr
WHERE recid = id

and it does not work...any suggestions...

-DNG
 
You haven't told us what or why you are attempting to run an update. Where do you expect ID and qrytstr come from?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
i would call the stored query from my asp page...

sql = "exec mystoredquery '"&qrystr&"',"&id&" "
con.execute(sql)

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top