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!

Type mismatch when referencing an ADO recordset

Status
Not open for further replies.

Sashanan

Programmer
Jan 19, 2001
235
NL
In VB6, one of my forms has an ADODC control that accesses a table in my SQL Server database and fills a couple of fields with it. Nothing special, I've got dozens of these throughout my application.

For some reason, on *one* client computer (it does not occur on my system or for any of the other 5 clients using this part of the program), any attempt to reference the recordset results in a Type Mismatch error. No matter if I do:

Code:
adodc1.recordset.movenext

Or

Code:
label1.caption = adodc1.recordset.recordcount

Or

Code:
If adodc1.recordset.eof then

Or anything of the sort, I immediately get a Type Mismatch and that's that. Once again, it only happens for him.

Reinstalling the application, even reinstalling the ADO drivers had no effect, and I'm at a loss what's causing this. If I revert to an earlier version of the executable on his computer, it works again, but the newer version doesn't; and I've changed nothing about the code in this part of the program, either.

What else can I do to figure out what's causing this problem?


"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
 
Just a quick point. Are you returning dates in the recordset?? If so you might want to try checking his international date setttings in his windows settings to make sure it's compatible with the format that your using.

Mark

The key to immortality is to make a big impression in this life!!
 
Also check the 'references'




MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top