Results 1 to 2 of 2

Thread: Unable to retrieve from database

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    4

    Unhappy Unable to retrieve from database

    hi guys.... i got a problem here.... i doing a search program.... here it goes.. i use dropdownlist to choose the date... when the date is chosen and click search..... it seem tat it cannot retrieve from the database... i post my coding here... hope u all can help me solve this.. thankz



    Dim insAppStartDate = StartDay.SelectedItem.Text & "-" & StartMth.SelectedItem.Text & "-" & StartYr.SelectedItem.Text.Substring(2, 2)


    If Not insAppStartDate = "" Then
    insAppStartDate = UCase(insAppStartDate)
    sql = "Select a.NRIC, a.FULL_NAME, b.POST_APPLIED, b.APPLN_DATE FROM hrrs_personal_info a, hrrs_application_info b WHERE UPPER(appln_date) = '" & insAppStartDate & "' and a.NRIC = b.NRIC"

    End If

  2. #2
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    All you are doing here is setting variable sql with a text string.

    How are you passing the text string to the database?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width