Runtime error 6160, data access error.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Runtime error 6160, data access error.

  1. #1
    Pat Guest

    Runtime error 6160, data access error.


    Hi:

    Here is what I have done, I created a customized datagrid,
    in order to put on some combobox. I chose datagrid because I donot want to
    handle those data connection stuff.
    It works great when there is data in the backend table.

    But I have the above error when the recordset is empty,
    it is strange that if I use datagrid directly, everything is fine. All I
    have done is that reassign the dataSource to
    the underlying datagrid in my user control. Any help will be greatly appreciated.

    Pat


    =================================
    MyGrid.ctl
    Public Property Let DataSource(ds As Object)
    Set DataGrid1.DataSource = ds
    End Property

  2. #2
    dnagel Guest

    Re: Runtime error 6160, data access error.

    Not fresh on this anymore... but

    try
    DataGrid1.DataSource = ds.name

    'replace ds.name with the appropriate property
    'if that not the right one...

    D.




    "Pat" <pwang@uclink.berkeley.edu> wrote in message
    news:3c489a9e$1@147.208.176.211...
    >
    > Hi:
    >
    > Here is what I have done, I created a customized datagrid,
    > in order to put on some combobox. I chose datagrid because I donot want to
    > handle those data connection stuff.
    > It works great when there is data in the backend table.
    >
    > But I have the above error when the recordset is empty,
    > it is strange that if I use datagrid directly, everything is fine. All I
    > have done is that reassign the dataSource to
    > the underlying datagrid in my user control. Any help will be greatly

    appreciated.
    >
    > Pat
    >
    >
    > =================================
    > MyGrid.ctl
    > Public Property Let DataSource(ds As Object)
    > Set DataGrid1.DataSource = ds
    > End Property




  3. #3
    PARDON MUCHENJE Guest

    Re: Runtime error 6160, data access error.


    HI

    MAY I ASK HOW A VISUAL BASIC v6 PROGRAM CAN BE CONNECTED TO AN MS ACCESS
    DATABASE SO THAT I CAN PERFOM SOME CALCULATIONS USING SOME OF THE DATA.
    I ALSO REQUEST TO BE INFORMED HOW I CAN INSERT SOME VALUES FROM THE VB PROGRAM
    INTO THE ACCESS DATABASE.


    MY E-MAIL ADDRESS IS THE ONE SPECIFIED ABOVE

    THANKS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center