Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1

    Default unique input(VB6)


    hi...

    unsaun mani kanang arun dli na pwd mag balik-balik ang ID number nga i-input sa user??

    kay kani man gud aq gibuhat mu dawat lang gypn maski ga exist na ang gi-input...

    ug unsa pud diay purpose anang "Adodc1"??




    salmat...

  2. #2
    auto increment

  3. #3
    ' before nimo isave ang data, icheck sa database bro kung mi.exist naba na nga data, kung mi.exist na, ayaw ipadaun ug save, hatagi message ang user nga me.exist na para mu.input siya ug iba. .
    ' Adodc - gamit para makita nimo ang data or records sa table sa database
    '

  4. #4
    ' before nimo isave ang data, icheck sa database bro kung mi.exist naba na nga data, kung mi.exist na, ayaw ipadaun ug save, hatagi message ang user nga me.exist na para mu.input siya ug iba. .
    awh...salamat kau sir...
    unsa may keyword ana nga step sir arun mag search nlang q...

  5. #5
    SELECT IDNumber FROM tblOwner WHERE IDNumber=" & txtIDnumber.text
    '
    '

  6. #6
    asa ko mani dapit i-singit sir??

    sa command button nga "Add"??

    o sa table mismo??

  7. #7
    ' sa imo code bro. . sa command button.
    ' before i.save, i.validate sa ang mga data
    '

  8. #8
    ' i.post imo code pag.save

  9. #9
    mao ning code sir sa pag save paghuman ug fill-up sa user sa "add" nga form...

    Code:
    Private Sub CmdCancel_Click()
    Unload Me
    End Sub
    
    Private Sub CmdSave_Click()
        If CmdSave.Caption = "&Save New" Then
            If MsgBox("Are you sure you want to add new record?", vbYesNo, "Add New Record") = vbYes Then
                Adodc1.Refresh
                With Adodc1.Recordset
                    .AddNew
                    .Fields(0) = Text1.Text
                    .Fields(1) = Text2.Text
                    .Fields(2) = Text3.Text
                    .Update
                End With
                If MsgBox("Do you want to add another new record?", vbYesNo, "Add New Record") = vbYes Then
                    Text1.Text = ""
                    Text2.Text = ""
                    Text3.Text = ""
                    Text1.SetFocus
                Else
                mainownerfrm.Adodc1.Refresh
                mainownerfrm.DataGrid1.Refresh
                Unload Me
                End If
            Else
                Text1.SetFocus
            End If
        Else
            If MsgBox("Do you want to save the changes you have made to the current record?", vbYesNo, "Save") = vbYes Then
                With mainownerfrm.Adodc1.Recordset
                    .Fields(0) = Text1.Text
                    .Fields(1) = Text2.Text
                    .Fields(2) = Text3.Text
                    .Update
                    .Close
                End With
                MsgBox ("Changes made successfully saved.")
                mainownerfrm.Adodc1.Refresh
                mainownerfrm.DataGrid1.Refresh
                Unload Me
            Else
                Text1.SetFocus
            End If
        End If
    End Sub

  10. #10
    nag assume ko bro nga imu nang ghimu ug primary key ang ID Number..
    ibutang ang code sa pag check sa duplicate sa imu add button before sa imu first condition nga:
    'If CmdSave.Caption = "&Save New" Then'

  11.    Advertisement

Page 1 of 3 123 LastLast

Similar Threads

 
  1. [HELP] I need your input! VB6/VB.net
    By tsunade in forum Programming
    Replies: 1
    Last Post: 03-06-2012, 04:56 PM
  2. cannot be input a letters or a number(vb6)
    By reyarita in forum Programming
    Replies: 29
    Last Post: 07-05-2010, 11:31 AM
  3. Template / Theme design contest inputs...
    By BeoR in forum Websites & Multimedia
    Replies: 107
    Last Post: 07-28-2006, 01:30 PM
  4. Multi-Input Touch Screen
    By iextreme in forum Websites & Multimedia
    Replies: 5
    Last Post: 02-16-2006, 04:43 PM
  5. access 2003 and vb6
    By jasonrey in forum Programming
    Replies: 10
    Last Post: 12-09-2005, 09:02 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