Results 1 to 5 of 5

Thread: Access Tables

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    21

    Arrow

    Hi. I have an existing Microsoft Access database which I need to manipulate through VB. However, when I use my ado connection on some tables I get the message "SYNTAX error in FROM clause". It works just fine with other tables. Could it be something to do with the format of my Table fields or names in Access, or are there some types of data which are incompatible. I'm at a loss. Any help would be appreciated. For instance my Customers table has just customer and shipping info in it, but it won't work with my Time Billed table which has dates, times, and mostly text fields.

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Could be as simple as something spelt incorrectly in your SQL statement.

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    are you putting brackets around TIME BILLED?

    Ex:

    Select * from TIME BILLED....

    will give you an error, but this will work:

    Select * from [TIME BILLED]....

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    21
    Thanks for the replies guys. I am using the ADO component to build and select my connection as well as select my tables. It is VB that creates the statement. Any idea?

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Don't use the VB Designers, or dont use spaces in your table names (assuming that is the problem)

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