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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updatable QueryDef

Status
Not open for further replies.

tseh

Programmer
Jan 13, 2000
64
CA
I have created a QueryDef at runtime and wish to update one of the fields. How can I (if possible) do this using Access 2000?

Dim qdfTemp As QueryDef
Dim strSQL As String

Set qdfTemp = gDB.QueryDefs!qryOrders

strSQL = 'My select statement

qdfTemp.sql = strSQL

I later use this query in various forms.
Thanks.
 
Are you using the query to locate a record so you can then update that record?
[sig]<p>John A. Gilman<br><a href=mailto:gms@uslink.net>gms@uslink.net</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top