Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dcount syntax for Yes/no field

Status
Not open for further replies.

ftook

Programmer
Dec 4, 2006
80
GB
I wonder if someone could please help with the dcount syntax for a yes/no field (Approver)

i have :

Code:
 If DCount("[tuuser]", "tuuser", "[tuuser] = '" & Me.pword & "'" And "[Approver]" = True) > 0 Then

comes back with type mismatch
 
Figured it out - i post just incase it helps others with the same problem :

Code:
 If DCount("[tuuser]", "tuuser", "[tuuser] = '" & Me.pword & "' And Approver = True") > 0 Then

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top