User Profile

Collapse

Profile Sidebar

Collapse
gillian3114
gillian3114
Last Activity: May 26 '07, 12:37 PM
Joined: Mar 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gillian3114
    started a topic sum() function is not returning value

    sum() function is not returning value

    Code:
    why this sum function won't work ? 
    eg Sum(personal)
    lblPersonal.Caption it wont retrieve the sum value of the personal field
    
    Dim cn6 As New ADODB.Connection
    Dim strCNString4 As String
    Dim rs6 As New ADODB.Recordset
    Dim intFound6 As Double
    
    strCNString6 = "Data Source=" & App.Path & "\PayrollBakeryDB.mdb"
    cn6.Provider = "Microsoft
    ...
    See more | Go to post

  • gillian3114
    started a topic sum() function problem help plz...

    sum() function problem help plz...

    Code:
    why this sum function won't work ? 
    eg Sum(personal)
    lblPersonal.Caption it wont retrieve the sum value of personal
    
    Dim cn6 As New ADODB.Connection
    Dim strCNString4 As String
    Dim rs6 As New ADODB.Recordset
    Dim intFound6 As Double
    
    strCNString6 = "Data Source=" & App.Path & "\PayrollBakeryDB.mdb"
    cn6.Provider = "Microsoft Jet 4.0
    ...
    See more | Go to post

  • gillian3114
    replied to vb error when i run it.
    i already reinstall it, but it still same
    See more | Go to post

    Leave a comment:


  • gillian3114
    started a topic vb error when i run it.

    vb error when i run it.

    when i run it it will pop up error

    Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience.


    Error signature
    AppName: vb6.exe AppVer: 6.0.81.76 ModName: vba6.dll

    error report:
    C:\DOCUME~1\Use r\LOCALS~1\Temp \f471_appcompat .txt

    how to solve it ?
    See more | Go to post

  • gillian3114
    started a topic log out problem. help !

    log out problem. help !

    this is my login form.
    i got other form log out button that go to this log in form to login again
    when i login again it will pop up this error:
    operation is not allowed when the object is open
    Code:
    Dim intFounds As String
    strCNString = "Data Source=" & App.Path & "\PayrollBakeryDB.mdb"
    cn.Provider = "Microsoft Jet 4.0 OLE DB Provider"
    cn.ConnectionString
    ...
    See more | Go to post

  • gillian3114
    replied to create login problem !
    how about if wan check m_username and b_username at the same time

    Code:
    ' why this cant work ?
          If txtUserName.Text = !s_username and txtUserName.Text = !m_username and txtUserName.Text = !b_username Then
    
              intFounds = 2
              MsgBox "UserName aleardy use by other staff !!", vbExclamation, "Create Account"
    See more | Go to post

    Leave a comment:


  • gillian3114
    started a topic create login problem !

    create login problem !

    i got 3 type username and password :
    1. boss
    2. manager
    3. staff

    how should i check if the username is exist then pop up msgbox error else add username and password to database


    Code:
    Dim rss As New ADODB.Recordset
    Dim strID As String
    Dim cnn As New ADODB.Connection
    Dim strCNString As String
    Dim intFound As Integer
    
    strCNString = "Data
    ...
    See more | Go to post

  • gillian3114
    started a topic how to add data to database ?

    how to add data to database ?

    i dont want use insert sql query
    got other way to do ?

    Code:
    Dim cn As New ADODB.Connection
    Dim rs As New ADODB.Recordset
    Dim strCNString As String
    
    strCNString = "Data Source=" & App.Path & "\final.mdb"
    cn.Provider = "Microsoft Jet 4.0 OLE DB Provider"
    cn.ConnectionString = strCNString
    cn.Open
    
    Dim sql As String
    ...
    See more | Go to post

  • gillian3114
    replied to Data Environment help please
    error occur at:


    Set DataReport1.Dat aSource = m1
    See more | Go to post

    Leave a comment:


  • gillian3114
    replied to Data Environment help please
    Error: Object Requiered.

    Code:
    Dim intMonth As Integer
    Dim intYear As Integer
    
    If cboMonth.ListIndex = 0 Then
        intMonth = 1
    ElseIf cboMonth.ListIndex = 1 Then
        intMonth = 2
    ElseIf cboMonth.ListIndex = 2 Then
        intMonth = 3
    ElseIf cboMonth.ListIndex = 3 Then
        intMonth = 4
    ElseIf cboMonth.ListIndex = 4 Then
        intMonth = 5
    ...
    See more | Go to post

    Leave a comment:


  • gillian3114
    started a topic Data Environment help please

    Data Environment help please

    i need to view salary payslip (data report) based on that particular month and year.

    in Data Environment sql :

    SELECT[emp_id], [emp_name], [emp_position], [emp_bs], [month_paid], [year_paid], [total_addition], [gross_pay], [total_deduction], [total_pay] FROM salary WHERE month_paid = ? and year_paid = ?

    parameter is monthler

    parameter is yearler


    in vb code:
    ...
    See more | Go to post

  • gillian3114
    replied to sum() access function help....
    Code:
      With rs3
    
            .Open "SELECT Sum(total_hr), Sum(total_ot_hr), emp_id FROM clock WHERE Month(working_date)=" & intMonth & " and Year(working_date)=" & intYear & "  and emp_id = ' " & txtEmp_ID.Text & " ' GROUP BY emp_id ", cn3, adOpenDynamic, adLockOptimistic
            Do Until .EOF
            ' why this cant show that sum value.
    ...
    See more | Go to post

    Leave a comment:


  • gillian3114
    replied to sum() access function help....
    thanks cmrhema , that really work ^_^
    See more | Go to post

    Leave a comment:


  • gillian3114
    replied to sum() access function help....
    With rs3

    .Open "SELECT emp_id, working_date, Sum(total_hr), Sum(total_ot_hr ) FROM clock WHERE Month(working_d ate)=" & intMonth & " and Year(working_da te)=" & intYear & " and emp_id= ' " & txtEmp_ID.Text & " ' GROUP BY working_date, emp_id", cn3, adOpenDynamic, adLockOptimisti c
    'Do Until .EOF

    txtWorkedHr.Tex t...
    See more | Go to post

    Leave a comment:


  • gillian3114
    replied to sum() access function help....
    i already change . now got error is:
    No value given for one or more required parameters

    if i no give group by working_date it will pop up a error.

    Code:
    Dim cn3 As New ADODB.Connection
    Dim strCNString3 As String
    Dim rs3 As New ADODB.Recordset
    Dim intFound3 As Integer
    
    strCNString3 = "Data Source=" & App.Path & "\PayrollBakeryDB.mdb"
    ...
    See more | Go to post

    Leave a comment:


  • gillian3114
    started a topic sum() access function help....

    sum() access function help....

    now i need is select that specify month and show that sum of total_hr.
    eg:

    working_date total_hr total_ot_hr
    20/2/2007 5 10
    21/2/2007 5 10
    22/2/2007 5 10
    23/2/2007 5 10
    23/3/2007 5 10

    if i select febuary it will :
    retrieve...
    See more | Go to post
No activity results to display
Show More
Working...