Results 1 to 2 of 2

Thread: [02/03] ASP.NET and SQL Query

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Question [02/03] ASP.NET and SQL Query

    Hi All,

    I have written a SQL query that will join two tables together and select the required record.

    When the query is executed via the webpage, the error message "Row handle is invalid" is returned. I have tested the query in Access 20007 Query designer and it returns the required record. I have pinpointed the problem at the "WHERE" clause.

    Code:
    SELECT TOP 1 [Audit.group], [Audit.position] FROM [Audit] INNER JOIN [Groups] ON (Audit.Group) = (Groups.GroupID) WHERE [Audit.ID] = " & fldID.Text & " ORDER BY [Audit.ChangeNo] DESC

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [02/03] ASP.NET and SQL Query

    What is "fldID"? And is Audit.ID a numeric or textual field?

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