MattBaldry
Self Taught, Learn from the Forums
- Local time
- Today, 13:05
- Joined
- Feb 5, 2019
- Messages
- 330
Hi all,
I thought I had this fixed, but I was wrong. I have the below code giving me an error.
FileRegisterTypeID is Numerical
FileRegisterDetailNumber is Short Text
If I hover on the debug, it is showing me the correct values. If I use any of the criteria alone, it works. once I try to join them it fails.
Could someone be so kind as to point out my obvious mistake please?
~Matt
I thought I had this fixed, but I was wrong. I have the below code giving me an error.
Code:
If DCount("*", "tblFileRegisterDetail", ("FileRegisterTypeID = " & FileRegisterTypeID And "FileRegisterDetailNumber = '" & FileRegisterDetailNumber & "'")) > 0 Then
FileRegisterTypeID is Numerical
FileRegisterDetailNumber is Short Text
If I hover on the debug, it is showing me the correct values. If I use any of the criteria alone, it works. once I try to join them it fails.
Could someone be so kind as to point out my obvious mistake please?
~Matt