I have a table that has a field, [Pchange], with a "Yes/No" value. If this field is "Yes", then when a user tries to log into the DB, they are prompted to change their password. If it's "No", then the main form opens.
What is the VBA syntax to reference this field?
The first "If" statement will look something like this I think:
If DLookup("Pchange", "tblEmployee", "[Employee]= """ & Text0 & """") = "Yes"
Should the "Yes" above be a "Yes" or a different value?
What is the VBA syntax to reference this field?
The first "If" statement will look something like this I think:
If DLookup("Pchange", "tblEmployee", "[Employee]= """ & Text0 & """") = "Yes"
Should the "Yes" above be a "Yes" or a different value?