meenctg
Learn24bd
- Local time
- Tomorrow, 01:29
- Joined
- May 8, 2012
- Messages
- 133
My code is
When i try with first Insert into line. it's ok. But when i do it 2nd one it shows error message. My table name, field name is ok.
Error message
I can't find the mistake. Please help me.
Code:
Private Sub Form_AfterUpdate()
Dim SQL As String
CurrentDb.Execute ("INSERT INTO Receive(ToAc,TransactionNo,AmountReceive) VALUES(" & Me.BkashAccount & "," & Me.BkashAccount & ",'00')")
CurrentDb.Execute ("INSERT INTO Send(From,TransactionNo,AmountSend) VALUES(" & Me.BkashAccount & "," & Me.BkashAccount & ",'00')")
MsgBox "Account added succefully"
End Sub
When i try with first Insert into line. it's ok. But when i do it 2nd one it shows error message. My table name, field name is ok.
Error message
I can't find the mistake. Please help me.