I would appreciate your assistance to advise me which error I did in encoding SQL and VBA codes in MS Access (20)10 append table and Form.
I have two tables DataEntry and GeneralJournal. I created SQL criteria in an append query with code copied below to update Credit field in table GeneralJournal with vale of field TransactionValue if value of field TransactionTypeCode in DataEntry is 1100.
This code turns no error but zero record can be copied
Expand|Select|Wrap|Line Numbers
- INSERT INTO GeneralJournal ( Credit )
- SELECT DataEntry.TransactionValue
- FROM DataEntry
- WHERE DataEntry.TransactionTypeCode = 1100;
Also this turns the error copied below.
Expand|Select|Wrap|Line Numbers
- Private Sub TransactionValue_AfterUpdate()
- If DataEntry.TransactionTypeCode = 1100 Then
- GeneralJournal.Credit = DataEntry.TransactionValue
- Else
- GeneralJournal.Credit = 0
- End If
- End Sub
Problem in connecting MS Access with OLE server or ActiveX control
Please Assist to have it fixed.
Thanks