Oct 10, 2010 #1 primagic IS-IT--Management Joined Jul 24, 2008 Messages 476 Location GB Getting data type mismatch error in the following code: Code: CheckUser = DCount("[UserID]", "dbo_Users", "UserID='" & Forms!frmLogin!UserID & "'") I am using SQL backend
Getting data type mismatch error in the following code: Code: CheckUser = DCount("[UserID]", "dbo_Users", "UserID='" & Forms!frmLogin!UserID & "'") I am using SQL backend
Oct 10, 2010 #2 TheAceMan1 Programmer Joined Sep 23, 2003 Messages 11,174 Location US How are ya primagic . . . Try: Code: [blue] CheckUser = DCount("[UserID]", "dbo_Users", "UserID = " & Forms!frmLogin!UserID)[/blue] See Ya! . . . . . . Be sure to see thread181-473997 [blue]Worthy Reading![/blue] Also faq181-2886 [blue]Worthy Reading![/blue] Upvote 0 Downvote
How are ya primagic . . . Try: Code: [blue] CheckUser = DCount("[UserID]", "dbo_Users", "UserID = " & Forms!frmLogin!UserID)[/blue] See Ya! . . . . . . Be sure to see thread181-473997 [blue]Worthy Reading![/blue] Also faq181-2886 [blue]Worthy Reading![/blue]