DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    88

    Add items to LynxGrid not the same type error?

    I put the records in a database with access to LynxGrid Type mismatch error, can you see help my code wrong ?
    Code:
    Private Sub Form_Load()
    Dim lRow As Integer
    
    'set list columns
    With listEntries
    .Redraw = False
    .AddColumn "ID Code", 50 '0
    .AddColumn "Full Name", 150 '1
    .AddColumn "Adress", 260 '2
    .AddColumn "Telephone", 70 '3
    
    .Redraw = True
    .Refresh
    End With
    
    strSQL = "SELECT Tabstaff .IDCode, Tabstaff .FullName, Tabstaff .Adress, Tabstaff .Telephone FROM Tabstaff ;"
    
    rsstaff .Open strSQL, DataCustomers, adOpenKeyset, adLockOptimistic
    rsstaff .MoveFirst
    listEntries.Redraw = False
    listEntries.Clear
    While Not rsstaff .EOF
    With listEntries
         lRow = .ItemCount
         .AddItem
         .CellText(lRow, 0) = rsstaff !IDCode ' This was the type mismatch error, if this line is rem by single quotes, then the next line will error
         .CellText(lRow, 1) = rsstaff !Fullname
         .CellText(lRow, 2) = rsstaff !Adress
         .CellText(lRow, 3) = rsstaff !Telephone
    End With
    rsstaff .MoveNext
    Wend
    listEntries.Redraw = True
    listEntries.Refresh
    rsstaff .Close
    
    End Sub
    Last edited by Hack; 08-07-2012 at 10:31 AM. Reason: Added Code Tags

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    I never heard of a Lynxgrid, so I googled it. Found it is a freeware control available on Planet Source code.

    I would suggest contacting the author of the grid
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Mar 2008
    Posts
    88
    LynxGrid it looks as Listview but it has nicer interface than as Listview
    I contacted the author but not, the other control features not such as LynxGrid

Similar Threads

  1. Replies: 1
    Last Post: 04-11-2012, 03:21 AM
  2. how to correct the errors?
    By mark108 in forum C++
    Replies: 9
    Last Post: 04-09-2011, 10:53 PM
  3. MIDL2020 : error generating type library
    By forexsurfr in forum C++
    Replies: 0
    Last Post: 05-30-2010, 01:43 AM
  4. Has anyone heard of VCVARS32.BAT?
    By Verrona in forum C++
    Replies: 18
    Last Post: 09-24-2008, 07:43 AM
  5. Replies: 1
    Last Post: 07-01-2005, 01:40 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links