User Profile

Collapse

Profile Sidebar

Collapse
mrmelvin
mrmelvin
Last Activity: Apr 5 '09, 10:11 PM
Joined: Aug 7 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • This solution will help you find the first empty row number in a spreadsheet. After you know that number you would used the standard expression like worksheet.range ("A1").value .

    Dim excelApp As Excel.Applicati on = New Excel.Applicati on()
    Dim excelBook As Excel.Workbook
    Dim strPath As String = "C:\Documen ts and Settings\All Users\Documents \Intranet\Sysco ARL\uniqueinv-20081201-024-ALL.xls"...
    See more | Go to post
    Last edited by mrmelvin; Jan 16 '09, 08:35 PM. Reason: post was showing unwanted markup tags

    Leave a comment:


  • mrmelvin
    replied to Function Sample
    Dynaset is a type of recordset.

    Dim rs As Recordset
    Dim rstype As RecordsetTypeEn um
    Set rs = CurrentDb.OpenR ecordset("selec t * from table where id = 100", RecordsetTypeEn um.dbOpenDynase t)
    Dim str As String
    Do While Not rs.EOF
    str = rs("fieldname" )
    MsgBox (str)
    rs.MoveNext
    Loop
    See more | Go to post

    Leave a comment:


  • An additional option would be to declare class level variables in the general declaration of the class. Then use the those varables in your returndocumentr ules function. Then close the db and recordset after your done calling the function in you main calling code. For example:
    public class abc()
    Dim db As Database, rs As Recordset
    function ReturnDocumentR ules()
    db = x
    rs = y
    end function
    private...
    See more | Go to post

    Leave a comment:


  • mrmelvin
    replied to Debugging .NET DLLs registered as COM
    in .NET
    As a first line of troubleshooting , I would check to see if the project was compiled in debug mode and not release mode. I'm refering to the compilation setting in the project properties.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...