Results 1 to 4 of 4

Thread: RT error , help [ resolved ]

  1. #1

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Resolved RT error , help [ resolved ]

    Im getting an error on this part of my (server side database )

    in form_load

    highlights: Conn.Open ' which opens the connection of course
    Attached Images Attached Images  
    Last edited by ice_531; Dec 29th, 2004 at 05:02 PM. Reason: resolved...
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: RT error , help

    The connection string is invalid or required dlls have not been installed.

    Post your code.

  3. #3

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Re: RT error , help

    VB Code:
    1. 'close database port if open already
    2. 'and start database listening on port 5657
    3. dbase.Close
    4. dbase.LocalPort = "5657"
    5. dbase.Listen
    6.  
    7. Set cn = New ADODB.Connection 'declared it as a ADODB connection
    8.     cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    9.       "DataSource= C:\Documents and Settings\ice_531\Desktop\valeo-system-project\valeo.mdb" 'this is the connection string
    10.     cn.Open
    11.     Set rs = New ADODB.Recordset 'as with the connection
    12.     rs.Open "valeo", cn, adOpenKeyset, adLockPessimistic, adCmdTable
    this is part of my form load.
    btw never did any ADO stuff before, talk to me like an oompa loompa
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  4. #4

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Re: RT error , help

    Resolved it. Thanks for letting me know what the error meant lol

    changed to this ( was connection string error )

    VB Code:
    1. Set cn = New ADODB.Connection 'we’ve declared it as a ADODB connection lets set it.
    2.     cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
    3.     App.Path & "\" & "valeo.mdb;Mode=Read|Write" 'this is the connection string explained in the notes section.
    4.     cn.Open
    5.     Set rs = New ADODB.Recordset 'as we did with the connection
    6.     rs.Open "valeo", cn, adOpenKeyset, adLockPessimistic, adCmdTable 'opening the recordset
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

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