G
Guest
1. Would following Dlookup command would change previous records or only
change current record in a form :
Private Sub TicketNo_AfterUpdate()
Dim aAmt As Variant
aAmt = DLookup("[Ticket Invoice]![Amount]", "Ticket Invoice", "[Ticket
Invoice]![Ticket No]=[Ticket Cncl]![Ticket No]")
aAmt = Me![Amount]
End Sub
2. Why does many times Run time error 2001 comes with a note " U cancelled
previous operation", wheerever Dlookup command is given in before update
event or after update event of particular field.
change current record in a form :
Private Sub TicketNo_AfterUpdate()
Dim aAmt As Variant
aAmt = DLookup("[Ticket Invoice]![Amount]", "Ticket Invoice", "[Ticket
Invoice]![Ticket No]=[Ticket Cncl]![Ticket No]")
aAmt = Me![Amount]
End Sub
2. Why does many times Run time error 2001 comes with a note " U cancelled
previous operation", wheerever Dlookup command is given in before update
event or after update event of particular field.