terminator88
New member
- Local time
- Today, 11:57
- Joined
- Nov 15, 2012
- Messages
- 5
hey,ia have a simply access Table1 like this:
Nr Simbol (Nr field and Simbol are formatted Text data)
1 a
2 b
3 c
i have created a form for this table,and i want this:when i put "1" in Nr box in the form,automatically form show me "a" in simbol box.
I write this code in VB:
Private Sub Nr_AfterUpdate()
Simbol = DLookup("Simbol", "Table1", "Nr= " & Nr)
End Sub
But when i open the form,when i put 1 in Nr box form doesent work,it say:
run-time error 3464,data type mismatch in criteria experssion
i read some smiliar post in this forum but nothing
Nr Simbol (Nr field and Simbol are formatted Text data)
1 a
2 b
3 c
i have created a form for this table,and i want this:when i put "1" in Nr box in the form,automatically form show me "a" in simbol box.
I write this code in VB:
Private Sub Nr_AfterUpdate()
Simbol = DLookup("Simbol", "Table1", "Nr= " & Nr)
End Sub
But when i open the form,when i put 1 in Nr box form doesent work,it say:
run-time error 3464,data type mismatch in criteria experssion
i read some smiliar post in this forum but nothing
