database connection using vbscript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kisore81178
    New Member
    • Jan 2015
    • 3

    database connection using vbscript

    Code:
    Function x()
    	
    	Set conn = CreateObject("ADODB.Connection")
    	Set rs = CreateObject("ADODB.Recordset")
    	msgbox "Connected...................................";
    	Set strConnect = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Chinku\Desktop\my-program\QUIZ.mdb;"
    	conn.Open strConnect
    	msgbox "Connected";
    	
    End Function
    
    I want connect ms-access database. Plz clearify me about the connection and ractify the error.
  • twinnyfo
    Recognized Expert Moderator Specialist
    • Nov 2011
    • 3662

    #2
    You have not told us what your problem is. Please describe any errors you are receiving and I am sure one of us may be able to help you troubleshoot your problem.

    Comment

    • kisore81178
      New Member
      • Jan 2015
      • 3

      #3
      This the connection of database using vbscript but the connection is not wprking

      Comment

      Working...