history
Egyptian Pharaoh
- Local time
- Today, 06:04
- Joined
- Jan 26, 2008
- Messages
- 190
Please brothers,
I need to know the meaning of this code ..... I took it from sample and tried to put it in my Inventory database but it failed .... cause ofcourse the code I didn't put right
Please I need to know the items refere to tables or records
thank you at all
The CODE:
Private Sub Code_AfterUpdate()
[Name] = DLookup("[Name]", "Names", "Code=
I need to know the meaning of this code ..... I took it from sample and tried to put it in my Inventory database but it failed .... cause ofcourse the code I didn't put right
Please I need to know the items refere to tables or records
thank you at all
The CODE:
Private Sub Code_AfterUpdate()
[Name] = DLookup("[Name]", "Names", "Code=
Code:
")
[Name] = DLookup("[Name]", "Names", "Code=[Code]")
[Price] = DLookup("[Price]", "Names", "Code=[Code]")
[Unit] = DLookup("[unit]", "Names", "Code=[Code]")
If IsNull(DLookup("[Code]", "Names", "[Code]='" & [Code] & "'")) Then
MsgBox " Sorry this Code is not exist in our directory ... please correct it ", vbCritical
Cancel = -1
End If
End Sub