thanks DataMiser for ur reply...
here am sending u code as per u said...
Below codes are for EDIT RECORD...
PHP Code:
Private Function UpDateData()
Set db5 = OpenDatabase(App.Path & "\HOME.mdb")
Set rs5 = db5.OpenRecordset("Select * from TRANSACTION where TID = " & TransLstView.SelectedItem.Tag & " ")
If rs5.EOF Or rs5.BOF Then
Else
rs5.Edit
rs5!TID = Text4.Text
rs5!TInOut = Combo1.Text
rs5!TType = Combo2.Text
rs5!TDate = Format(DTPicker1.Value, "dd/mm/yyyy")
rs5!TMode = Combo3.Text
If Combo3.Text = "CASH" And Combo4.Text = "" Then
rs5!TBank = ""
rs5!TBAcNo = ""
Else
rs5!TBank = Combo4.Text
rs5!TBAcNo = Text1.Text
End If
If Combo1.Text = "INCOME" Then
rs5!TAmtIn = Text2.Text
rs5!TAmtOt = Val("") '"0.00"
Else
rs5!TAmtIn = Val("") '"0.00"
rs5!TAmtOt = Text2.Text
End If
rs5!TRemarks = Text3.Text
rs5!InOutID = Text5.Text
rs5.Update
End If
rs5.Close
FrmLoad
End Function
and below codes for RECORD NUMBER...
PHP Code:
Private Function TransID()
Set db = OpenDatabase(App.Path & "\HOME.mdb")
Set rs = db.OpenRecordset("Transaction", dbOpenTable)
If rs.EOF = True And rs.BOF = True Then
counter = 1
Text4.Text = counter
Else
rs.MoveLast
counter = rs!TID
Text4.Text = counter + 1
End If
End Function
i have checked with line to line, but still no result...
so, plz help...
thanks in advance....
kaushal