User Profile

Collapse

Profile Sidebar

Collapse
Hiram13
Hiram13
Last Activity: Jul 16 '13, 12:03 PM
Joined: Jun 14 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thanks guys i was able to save and retrieve pictures using this code:
    Code:
    Dim arrImageByte() As Byte
        Dim fNum As Integer
        
        Dim rs As New ADODB.Recordset
        Dim strPhotoPath As String
        Dim isImage As Boolean
        If Me.imgPhoto.Picture <> LoadPicture("") Then
            SavePicture Me.imgPhoto.Picture, App.Path & "\tmpphoto.jpg"
            strPhotoPath =
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 15 '13, 01:55 PM. Reason: Added code tags. Please post code in code tags in the future.

    Leave a comment:


  • Hiram13
    started a topic sharing internet modem over a LAN

    sharing internet modem over a LAN

    i have set up a LAN with 3computers and i can share data but the problem now is sharing internet on the network. when i put the server on a normal port on the router its working but when i put to the internet port it cannot access other computers on the network. Am using Dlink wireless router, dlink switch and am on windows7 platform
    See more | Go to post

  • saving and retrieving pictures using vb6 and ms access

    Hi
    Am developing a school software and i have a form named Admission which i want to include the pictures of students, i have managed to upload the picture using this code:
    Code:
    Private Sub Command1_Click()
     Dim pic As StdPicture
    dlgPicture.Filter = "Pictures (*.bmp;*.jpg)|*.bmp;*jpg|"
    dlgPicture.ShowOpen
    filen = dlgPicture.FileName
    Picture1.Picture = LoadPicture(filen)
    End Sub
    ...
    See more | Go to post
    Last edited by Rabbit; Jun 20 '13, 03:18 PM. Reason: Please use code tags when posting code.

  • thanks so much its working
    See more | Go to post

    Leave a comment:


  • yes that's where the problem is but field Paid is number 8 in my database so don't know what to do now. i have a Ms Access table titled Payment with fields PaymentID, StudentID, Name, Surname, AdminNO, Class, Term, Fee, Paid, Bal, ModeOfPayment, Number, PaidOf, Date. i want to get the total from field paid to display on my Vb6.0 Form named frmPayment on lblTotal by press of a command button namely cmdTotal. Which code will i put on this command button...
    See more | Go to post

    Leave a comment:


  • Getting Sum of Amount paid from a ms Access table using modules in vb6.0

    Am trying to use this code to get the sum of amount paid but its giving me the output as True instead of the sum. where is the problem?

    Code:
    Dim DataEnvironment1 As New ADODB.Command
    Dim rs As New ADODB.Recordset
    Dim subs As String
    
    On Error Resume Next
        DataEnvironment1.ActiveConnection = con
        DataEnvironment1.CommandText = "select sum(Paid) from Payment"
        rs.Open DataEnvironment1,
    ...
    See more | Go to post
    Last edited by Rabbit; Jun 14 '13, 03:16 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...