3 messages in com.mysql.lists.win32RE: SQL problem
FromSent OnAttachments
Mark Mchugh16 Nov 2005 06:12 
andy...@siemens.com16 Nov 2005 07:48 
jbon...@sola.com.au16 Nov 2005 14:18 
Subject:RE: SQL problem
From:andy...@siemens.com (andy@siemens.com)
Date:11/16/2005 07:48:50 AM
List:com.mysql.lists.win32

The record count does not always give you the correct result. Try rs.movefirst followed by rs.movelast and then check the record count. Or stick the results in a grid and see what's there.

Andy

-----Original Message----- From: Mark Mchugh [mailto:mark@yahoo.com] Sent: 16 November 2005 14:13 To: mysql list Subject: SQL problem

Hi, I am using the following code

Set hubsdb = OpenDatabase("", dbDriverComplete, False, "ODBC;DSN=mysqltest;UID=root;PWD=xli2310;Database=adjuster")

Set rs = hubsdb.OpenRecordset("select * FROM personal WHERE general LIKE 'Personal%'", dbOpenDynaset)

MsgBox (rs.RecordCount)

i get zero results back, but when i run the query in the mysql control center, i get 10 results back.

when i change the above sql to "Select * from personal" i get all the items from the table back.

strange?

is there a bug?

thanks