Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Data type mismatch in criteria expression.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
MTBPatriot



Joined: 28 Oct 2006
Posts: 1

PostPosted: Mon Oct 30, 2006 12:35 am    Post subject: Data type mismatch in criteria expression. Reply with quote

I'm trying to retrieve information from a Microsoft Access database where the field "PARENT" is equal to a certain variable, but I keep getting a Data Type Mismatch.
Heres the SQL:
Code:
rsRecordSet.Source = "SELECT * FROM " & which_table & " WHERE PARENT = " & whichtest


When its running, rsRecordSet.Source is:
Code:
SELECT * FROM Questions WHERE PARENT = 2


The error I keep getting is:
Data type mismatch in criteria expression.

I really have no idea on how to continue from here.
Thanks in advance for any advice you guys can give!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap