Results 1 to 2 of 2

Thread: BC30205: End of statement expected.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    26

    BC30205: End of statement expected.

    How do I fix this?

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30205: End of statement expected.

    Source Error:
    Code:
    Dim conn SqlConnection = New SqlConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_scratch.mdb";)


    Any help would be appreciated.

  2. #2
    Member basilisk's Avatar
    Join Date
    Jan 2002
    Posts
    32

    Re: BC30205: End of statement expected.

    try changing to :

    VB Code:
    1. Dim conn As SqlConnection = New SqlConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_scratch.mdb;")

    which should compile (i added 'as' after conn and moved the semi-colon before the quote)

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