Results 1 to 4 of 4

Thread: Another Stupid DB Q

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    Grr..
    Another error.

    Umm.. Ok I Wrote ..

    SQL = "select * from categories where description like " & Chr(34) & Text1.Text & Chr(42) & Chr(34)
    Data1.RecordSource = SQL
    Data1.Refresh

    And It said
    "The Microsoft jet engine cannot find input table or query. Make sure it exists and the name spelled correct."

    The Dbsourse is called "General"

    Whats wrong??

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    So whats with all the char characters?

    Try something like

    Dim rRecord as Recordset
    SQL = "SELECT * FROM Categories WHERE Description Like '" & Text1 & "'"

    -> Categories must be a recordset name and Description must be a field in that recordset.

    set rRecord = General.Open(SQL)

    Any Help.

  3. #3
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334

    Post

    Try

    Code:
    sSQL="SELECT * FROM sometable WHERE sometable.somefield='" & Chr(34) & Text1.Text & Chr(42) & Chr(34) & "';"
    
    Data1.RecordSource=sSQL
    Data1.Refresh

    ------------------
    Matt G
    Either [email protected]] or [email protected]

  4. #4
    Member
    Join Date
    Feb 1999
    Location
    Lexington,kentucky,USA
    Posts
    61

    Post

    Basically the error is saying that it could not find the table or query name Categories in your database.

    You should check and see if there is 'Categories' in your database.

    Good luck.

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