Solved

Member or Data not found

Posted on 2002-07-06
1
132 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

759 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now