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

One more thing on multiple tables and sql

Status
Not open for further replies.

1712

Technical User
Nov 8, 2000
66
0
0
NL
The following is the code for trying to get data from a related table using sql statements.

sqlstr = "SELECT * FROM nanny inner join references on nanny.id = references.id"
sqlstr = sqlstr & " WHERE nanny.id = " & request("id")


I get a syntax error on the execution of this statement saying I have an error on the from statement.
 
do a response.write before execution of query:
response.write sqlstr

' what does it display?

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top