Results 1 to 10 of 10

Thread: Adodc

  1. #1

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Sorry, slight mistake.
    Use Refresh there is no Update.

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91
    Leather,
    Now the error comes up saying microsoft jet cannot find input table or query "tablename".??
    Thankyou for any and all help. It is greatly appreciated

  3. #3
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Ok the so it looks like you are trying to run aa query like

    "SELECT * FROM TABLENAME"

    You need to append the table name.


    IE

    "SELECT * FROM " & Text1.text

    Or

    "SELECT * FROM " & listbox1.text

    In other words you must put the actual table name into the SQL statement.
    Leather Face is comin...


    MCSD

  4. #4
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91
    Here is what I have

    Private Sub Command4_Click()
    datPrimaryRS.RecordSource = "select* Name,Car,Origin,[Round 1 Time],[Round 1 Speed],[Round 2 Time],[Round 2 Speed],[Round 3 Time],[Round 3 Speed],Position,[Nominated Speed],Variation from [Class IV] "

    datPrimaryRS.Refresh
    grdDataGrid.Refresh

    I copied most from current record source.maybe i have it all back to front.


    Thankyou for any and all help. It is greatly appreciated

  5. #5
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    U need a space between the SELECT and the *
    Leather Face is comin...


    MCSD

  6. #6
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91
    This must be very frustrating for you and i apologise.I now have another error.

    Syntax error (missing operator) in query expression'*name'
    Thankyou for any and all help. It is greatly appreciated

  7. #7
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Hey thats ok, no problem.

    Its the same for everyone.

    Delete the * altogether..

    Sorry should have spotted that straight away..

    Let me know if that works.
    Leather Face is comin...


    MCSD

  8. #8
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    The * in a SQL Statement is used to retrieve all columns in the table or view... If you intend to specify column names (as you have) then tehre is no need for the Asterix.
    Leather Face is comin...


    MCSD

  9. #9
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91
    leather you are a genius.Thankyou very much for taking the time to help me it is greatly appreciated.
    I owe you one.
    Thankyou for any and all help. It is greatly appreciated

  10. #10
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732

    Wink

    No Problem m8...

    Leather Face is comin...


    MCSD

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