Page 3 of 7 FirstFirst 123456 ... LastLast
Results 21 to 30 of 69
  1. #21

    try to use the debugging feature of vb6...it helps a lot...

  2. #22
    unsa connection gamit nimo bro? basin naa problema sa connection nimo? and unsa database na gamit.. ?

    try pud basin naa ka error filter like ON ERROR RESUME NEXT mao d cya ma save

  3. #23
    Quote Originally Posted by skeptic_rob View Post
    I already solve this program but the problem is ..it cannot store data nasad
    'is this problem solved

  4. #24
    Private Sub cmdRetrieve_Click()
    Dim rs As New ADODB.Recordset
    rs.Open "SELECT * from user_act WHERE id > " & txtid.Text, Conn, adOpenForwardOnly, adLockPessimistic

    If Not rs.EOF Then
    txtid.Text = rs!id
    'txtpassword.Text = rsSearch!Password
    txtuname.Text = rs!uname
    txtpassword.Text = rs!Password


    Else
    LastID = 0

    End If


    rs.Close

  5. #25
    Quote Originally Posted by istoryansucks View Post
    Private Sub cmdRetrieve_Click()
    Dim rs As New ADODB.Recordset
    rs.Open "SELECT * from user_act WHERE id > " & txtid.Text, Conn, adOpenForwardOnly, adLockPessimistic

    If Not rs.EOF Then
    txtid.Text = rs!id
    'txtpassword.Text = rsSearch!Password
    txtuname.Text = rs!uname
    txtpassword.Text = rs!Password


    Else
    LastID = 0

    End If


    rs.Close
    mo retrieve cya pero dli mao ang iyang e retrieve

  6. #26
    Private Sub cmdDelete_Click()
    If txtID.Text = "" Then
    MsgBox "Please enter an ID number!", vbCritical
    Exit Sub
    End If


    Dim rs2 As New ADODB.Recordset
    ans = MsgBox("Do you really want to delete this record?", vbYesNo, Me.Caption)
    If ans = vbYes Then
    rs2.Open "DELETE FROM MIDTERM WHERE ACT_ID='" & txtID.Text & "'", Conn, 1, 2
    MsgBox "Record Deleted"
    clear

    End If
    End Sub
    ex.. 0001 was successfully delted pero ika retrieve na ko mo balik na sad 0001.unsa problema ani bro

  7. #27
    Quote Originally Posted by istoryansucks View Post
    Private Sub cmdRetrieve_Click()
    Dim rs As New ADODB.Recordset
    rs.Open "SELECT * from user_act WHERE id > " & txtid.Text, Conn, adOpenForwardOnly, adLockPessimistic

    If Not rs.EOF Then
    txtid.Text = rs!id
    'txtpassword.Text = rsSearch!Password
    txtuname.Text = rs!uname
    txtpassword.Text = rs!Password


    Else
    LastID = 0

    End If


    rs.Close

    'dili jud mao ang e.retrive kay > man imo gamit

  8. #28
    Quote Originally Posted by istoryansucks View Post
    Private Sub cmdDelete_Click()
    If txtID.Text = "" Then
    MsgBox "Please enter an ID number!", vbCritical
    Exit Sub
    End If


    Dim rs2 As New ADODB.Recordset
    ans = MsgBox("Do you really want to delete this record?", vbYesNo, Me.Caption)
    If ans = vbYes Then
    rs2.Open "DELETE FROM MIDTERM WHERE ACT_ID='" & txtID.Text & "'", Conn, 1, 2
    MsgBox "Record Deleted"
    clear

    End If
    End Sub
    ex.. 0001 was successfully delted pero ika retrieve na ko mo balik na sad 0001.unsa problema ani bro
    'what data type anang ACT_ID nga field
    'kung String or Text:
    rs2.Open "DELETE FROM MIDTERM WHERE ACT_ID='" & txtID.Text & "'", Conn, 1, 2
    'if Number:
    rs2.Open "DELETE FROM MIDTERM WHERE ACT_ID=" & txtID.Text, Conn, 1, 2
    'then try ichange nga 1 ug 2 sa adOpenDynamic ug adLockOptimistic

  9. #29
    Quote Originally Posted by skeptic_rob View Post
    Private Sub cmdsave_Click()
    Dim rs As New ADODB.Recordset
    Dim sqlstr As String

    rs.Open sqlstr, Conn, adOpenDynamic, adLockOptimistic

    sqlstr = " insert into user_act(id,password,uname,date)Values ('"&txtid.text&"','"&txtpassword.text"','"&txtunam e.text&"','#"&txtdate.text&"#)"


    unsa sayop ani bro...dli man maka save cya data sa database? expert i need ur help
    Kung Access imo DB, Ingon ani ang Pag insert.

    kung date ang field na insertan: #" & txtDate.text "# tangtanga ang single qoutes.
    kung number ang field na insertan: " & txtid.text & " tangtanga ang single qoutes.
    kung string ang field na insertan: '" & txtPassword.text & "' Kana naay single qoutes.

    Happy Coding!

  10. #30
    bro. timan-e lang jud basta string or character gani imong isulod sa query string, single quote rana sya.

    -2010 Cebujobline.com Team

  11.    Advertisement

Page 3 of 7 FirstFirst 123456 ... LastLast

Similar Threads

 
  1. Samsung gt-s5230 problem
    By scarlet143 in forum General Gizmos & Gadgets Discussion
    Replies: 4
    Last Post: 02-27-2013, 08:37 PM
  2. VB Programming
    By joselyt07 in forum Programming
    Replies: 3
    Last Post: 01-11-2008, 11:53 AM
  3. VB Programming
    By joselyt07 in forum Programming
    Replies: 11
    Last Post: 11-10-2007, 09:30 AM
  4. help on vb programming
    By benz_jie2005 in forum Programming
    Replies: 8
    Last Post: 08-14-2006, 02:00 PM
  5. VB gurus... I need your expertise... problem solve
    By afortaliza in forum Programming
    Replies: 14
    Last Post: 05-23-2006, 09:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top