Code to check the contents of a field in a table where another field = something (1 Viewer)

brainox

Registered User.
Local time
Today, 18:25
Joined
May 22, 2013
Messages
24
HI
I am trying create some code that checks if the contents of the status field in a table is "Authorised" where the ID = something specific for multiple records. If all records witht the specific ID are "Authorised" Then generate a new record in another table.
I know it's poorly explained but it's the best I could do I'm afraid.
I have no idea where to start, perhaps a Dlookup?
Any ideas would be greatly appreciated
Many thanks in advance
 

pr2-eugin

Super Moderator
Local time
Today, 18:25
Joined
Nov 30, 2011
Messages
8,494
DLookUp is a good place to start..
Code:
If Nz(DLookUp(......), "NA") <> "NA" Then
[COLOR=Green]    'your CODE to add New record.[/COLOR]
End If
 

Users who are viewing this thread

Top Bottom