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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datatype mismatch

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
0
0
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
 
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] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top