Heatshiver
Registered User.
- Local time
- Today, 18:22
- Joined
- Dec 23, 2011
- Messages
- 263
I have a piece of code that requires a logical operator like AndAlso in VB.net.
I can circumvent this by creating another form, but I am trying to reuse forms where possible as there will be many more to add later.
The code is a simple If statement with the first line involving both a DLookup for date validation and a second part checking if a field is locked (I've also tried enabled).
I tried using the And operator, and it gives me an error to the DLookup part (and rightfully so).
I just need the code to check to make sure both parts of the statement are true, and if not, to proceed with the rest of the code statements.
I can circumvent this by creating another form, but I am trying to reuse forms where possible as there will be many more to add later.
The code is a simple If statement with the first line involving both a DLookup for date validation and a second part checking if a field is locked (I've also tried enabled).
I tried using the And operator, and it gives me an error to the DLookup part (and rightfully so).
I just need the code to check to make sure both parts of the statement are true, and if not, to proceed with the rest of the code statements.