Results 1 to 2 of 2

Thread: database bind error

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    10
    Using ADO, When I change the recordsource at run time, the I get a UNABLE
    TO BIND TO FIELD ITEM (ERROR 545). If I run the code below, ViewTableOne
    will run ok, then ViewTableTwo will error on the line shown.

    Call ViewTableOne()
    Call ViewTableTwo()

    Private Sub ViewTableOne()
    Adodc1.RecordSource = "Message_One_Table"
    Text1.DataField = "Message_One_Field_1"
    End Sub

    Private Sub ViewTableTwo()
    Adodc1.RecordSource = "Message_Two_Table"
    Text1.DataField = "Message_Two_Field_1" <--- ERROR ----
    End Sub

    Thanks for any help - Bob

  2. #2
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    After you change the .RecordSource of the Adodc, you may need to do an Adodc.Refresh. Trying adding that and see if it helps.

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