Solved

Member or Data not found

Posted on 2002-07-06
1
139 Views
Last Modified: 2010-05-02
When I create new archive for my program, after specifying the archive's name and location, an error of member or data not found appears and VB indicate the following line of code:

Item.SubItems(3) = rightjust(comp.Ratio((i)), "##0.00%")

Note the rightjust coding is as follows:

Function rightjust(var As Variant, just As Variant) As String
   
    Dim frmt As Integer
   
    frmt = Len(just)
    rightjust = right(Space(frmt) & Format(var, just), frmt)
End Function

Can this problem be avoided or solved because creating new archive does not have anything inside after I place a file to compress.

I hope to receive reply ASAP. Thanks

Viewer

P/S: here's related class module coding

Private Type LempFile
    Key As String           'Path\File.ext
    fname As String         'Filename including extension only
    Ext As String          
    Path As String          
    RelPath As String      
    compressed As Boolean  
    fsize As Long          
    CompSize As Long      
    Ratio As Single        
    changed As Date
    icokey As String
    Offset As Long          
    ChkSum As Byte          
    chksumcomp As Byte      
    choosen As Boolean
End Type
0
Comment
Question by:program_viewer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
PNJ earned 50 total points
ID: 7137463
I think it may be the "Item" variable. "Item" is a property of several VB entities. Try changing your declaration of "Item" to (say) "MyItem" and see how that goes.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Script Host failed (Access is denied.) error 6 446
SLMGR Switches Are Not Working On KMS Host 3 169
Added a column screws up code 5 75
Help me. 3 77
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question