User Profile
Collapse
-
Yaaa now its works !!!! thanks you maaan ,, !!! -
this line is highlited :
Code:StPassenger = Nz(DLookup("wantedName", "WantedList", "WantedName = " & Nz(Me.PassengerName.Value)))
Leave a comment:
-
Dear topher23,
thanks for your reply, I've copied and pasted your code in the database, where it was giving me the same runtime error 2001, msg: you cancelled the previus operations.Leave a comment:
-
I've tried now as you informed me but its giving me error 2001, and msg; you cancelled the previus operations.
I've attached the sample database in the below link, could you please check and let me know,,
https://dl.dropboxusercontent.com/u/...Passengers.rar...Leave a comment:
-
Thanks both for your reply!!,
actually i've did with the both function Dcount and Dlookup as following code:
Code:Private Sub PassengerName_Exit(Cancel As Integer) Dim StPassenger As String StPassenger = DLookup("wantedName", "WantedList", "WantedName" = Me.PassengerName.Value) If StPassenger = True Then MsgBox "This
Leave a comment:
-
how to check a field from another table
Hi All,
I've a a main table to enter personal data of PASSENGER, and other table of WANTED LIST, I need while entering the name of the passenger in the main table I need it to check the name first in wanted list table, if the name is existing provide me a massage stating he is in the wanted list,
How I can do that by VBA, please advise dear experts!!,
Many thanks in Advance !!
MIsab
No activity results to display
Show More
Leave a comment: