View Single Post
  #9 (permalink)  
Old March 25th, 2008, 12:50 PM
AOG123's Avatar
AOG123 AOG123 is offline
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 75
Thanks: 6
Thanked 20 Times in 15 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

Quote:
Originally Posted by Lauramc View Post
You forgot one of the plus signs. Try this:
Code:
SELECT @sql = 'SELECT candidate_last_name, candidate_first_name 
                     FROM vw_applicationDetail 
                     WHERE application_status_id = ' + CAST(@statusCode As varchar(10)) +
                     'AND current_status_ind = ' + CAST(@currentStatus As varchar(10)) + ' ' +
                     'AND application_deleted_ind = 0 '
Also you were missing a closed parentheses. I checked this in query analyzer. It works now
your missing ' ' + after

(@statusCode As varchar(10)) +

Edit: maybe not,.. you had it earlier but took it out?
__________________
If i helped you, make me famous by clicking the