I am stuck with the function DCount...
I have the following problem:
I use:
tblContracts
============
AutoID
ContractID - numeric
Week - numeric
Price
frmContract
========
txtContractID
txtWeek
txtPrice
[Question]
I would like to check if a contractID contains Week 0 (zero).
Criteria:
Criteria one - pick contractID from text box (txtContractID)
Criteria two - 0 (for the weeknumber 0)
[Own Solution]
I am using DCount for this check:
What's wrong in this code?!?
JiTS
I have the following problem:
I use:
tblContracts
============
AutoID
ContractID - numeric
Week - numeric
Price
frmContract
========
txtContractID
txtWeek
txtPrice
[Question]
I would like to check if a contractID contains Week 0 (zero).
Criteria:
Criteria one - pick contractID from text box (txtContractID)
Criteria two - 0 (for the weeknumber 0)
[Own Solution]
I am using DCount for this check:
Code:
If DCount("[txtWeek]", "tblContracts", "[ContractID] = " & Me.txtContractID & "and [Week] =" & 0) then ...
What's wrong in this code?!?
JiTS