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

RecordSet Problem - Mismatch error

Status
Not open for further replies.

UmaGrama

Technical User
Sep 8, 2003
33
BR
I keep getting this error "Data type mismatch in criteria expression" (error number 3464) when I execute the following code:

Dim Rst As Recordset
Set Rst = MyDB.OpenRecordset("SELECT * FROM Hospede WHERE Hospede.Quarto=102")

What could be wrong???
 
What data type is your Quarto field? If it's a text field then you need quotes around the 102.

"SELECT * FROM Hospede WHERE Hospede.Quarto='102'"


Maq [americanflag]
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top