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

query result in a textbox

Status
Not open for further replies.

kpetas

Programmer
Oct 19, 2006
11
ES
I want to put a SQL query result in a textbox but I don't know how. in Access

strSQL = "SELECT NombreProyecto "
strSQL = strSQL & "FROM Proyecto "
strSQL = strSQL & "WHERE [CodigoProyecto]="& OpenArgs & ""

And then...
The query result is only one file
Thank you
 
You can use DlookUp:

[tt]= DlookUp("NombreProyecto","Proyecto","[CodigoProyecto]="& OpenArgs)[/tt]

Assuming CodigoProyecto is a number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top