Results 1 to 6 of 6

Thread: No Value Given

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Hello, I got this code below i don't know what actually is wrong with it as it keep
    giving me error (No Value Given). Seen like it could not extract the value (which is in Text format) from the text box.

    Adodc2.RecordSource = "select ven.*, claim.*
    from claim, ven where ven.field1 = claim.vendor and claim.hpcode = " & Text67.Text & ""
    Adodc2.Refresh

    Thks & regards.

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    If your claim.hpcode is text field then you must use <'>:
    claim.hpcode = '" & Text67.Text & "'"

    [This message has been edited by smalig (edited 10-18-1999).]

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    ok thanks, Smalig. Is there a way to assign the recordsource of data object in code?

    e.g:
    data3.recordsource = '" & text67.text & "'

    This is incorrect.
    What is the complete statement? Cause seen like this statement is wrong. Thks.

  4. #4
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179

    Post

    use this:
    set data3.recordsource = blabla

    so you initializes the datacontrol with the new recordset.

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    don't forget to refresh the RS after assigning a table to it... data1.refresh

  6. #6

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Thks a lot.

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