Hi - I can't work out what I'm doing wrong with this SQL syntax.
This is in a submission page, and I want to present to my user a field from another table based on the item they selected. So if they selected item 6 on the previous page, I want it to return more details about item 6 on the next page. But no matter what I do, the syntax always returns the first value in the other table. Any help would be much appreciated. Thanks
ISNULL((SELECT (Field4) FROM PW_tbl_progitems WHERE progitemid='[@field:progitemid]'),0)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Jodie
Hi - I can't work out what I'm doing wrong with this SQL syntax.
This is in a submission page, and I want to present to my user a field from another table based on the item they selected. So if they selected item 6 on the previous page, I want it to return more details about item 6 on the next page. But no matter what I do, the syntax always returns the first value in the other table. Any help would be much appreciated. Thanks
ISNULL((SELECT (Field4) FROM PW_tbl_progitems WHERE progitemid='[@field:progitemid]'),0)
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.