Results 1 to 3 of 3

Thread: Accepted Table Name

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Post

    I have problem using SQL to retrieve data from a table if it's name consist of two word like "My employee", Visual basic will give error that table name "My" is not exist.
    Any idea how to solve this error with out changing the table name to one word.

    Appreciated

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Post

    Try using [My employee] when you refer to the table in SQL
    e.g.

    SELECT * FROM [My employee]

    Also in VB code.

    Cheers,
    John.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Post

    Thank you, I tried it out and it worked excellent
    Best Regards
    Maq

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