views:

15

answers:

0

Hi guys,

i have a problem. I have database with a tableadpater. i want to get the userid with this tableadapter.

 Dim dsGN As New ForumTableAdapters.Message2TableAdapter

    Dim dtBetrieb As Data.DataTable = dsGN.GetUserIdFromThisMessage(ConversationID)

    For Each objRow As dsGN.Message2Row In dtBetrieb.Rows

        mystring = objRow.UserId.ToString
    Next

i get the error "dsGN.Message2Row is not defined"

The Name ob my table in the database is "Message" i hope that somebody can help me.