1
123
thank you
I want to use Dcount to disply msgbox if field ID is enter before
(dublicated) and this code will be in data sheet form with ((current))
event..
Data sheet form properties: allow addition= no and the data sheet form is
sub form
I have try but my code display message for every record:
Private Sub Form_Current()
On Error Resume Next
If (DCount("*", "tblname", "ID= ID") >0) Then
msgbox "this number is enter"
End If
End Sub
==
I don't want to use active control because I want to scroll the data sheet
from any control...
I want to use Dcount to disply msgbox if field ID is enter before
(dublicated) and this code will be in data sheet form with ((current))
event..
Data sheet form properties: allow addition= no and the data sheet form is
sub form
I have try but my code display message for every record:
Private Sub Form_Current()
On Error Resume Next
If (DCount("*", "tblname", "ID= ID") >0) Then
msgbox "this number is enter"
End If
End Sub
==
I don't want to use active control because I want to scroll the data sheet
from any control...