Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Modules & VBA

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-12-2005, 11:25 PM
Moonshine's Avatar
Moonshine Moonshine is offline
Registered User
 
Join Date: Jan 2003
Location: England
Posts: 125
Moonshine
dbSeeChanges Error

Hi All

Im using an access front end to add/amend/get data from SQL Server tables, when opening recordsets you need to use the dbSeeChanges as an option, which i am doing, and for Adds/Edits it works fine, however, when im trying to Get data, i get an error telling me "Data Type MisMatch".

So i ponder this for a while, and then do a debug.print on the OpenRecordSet code, which then shows me the problem

This Is The OpenRecordSet

Code:
Set rstFind = CurrentDb.OpenRecordset("select * from [eaEquipmentDetails] where eaEquipmentID = " & Me.List1, dbOpenDynaset, dbSeeChanges)
What id expect to get is this:

Code:
select * from [eaEquipmentDetails] where eaEquipmentID = 4012
However, what im getting is:

Code:
select * from [eaEquipmentDetails] where eaEquipmentID = 4012                3                    512
It seems the two options of the recordsetopen, has a numeric value, so the query fails. How can i get it to ingnore the last two opens, and stop putting the values in the query?!
Reply With Quote
Sponsored Links
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Function isn't available - Relink library references through VBA? ForcedToUseIt Modules & VBA 4 09-02-2009 01:47 AM
Using FindFast with SQL Table? jonno99 Modules & VBA 2 07-08-2005 01:31 PM
Re: Unable to locate error alicejwz Forms 1 04-06-2005 07:15 AM
Error Handler problem zdog Modules & VBA 5 03-07-2005 04:29 AM
Error 16389 Reserved Error Lynn_AccessUser Forms 2 02-12-2004 01:41 PM


All times are GMT -8. The time now is 09:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World