PDA

View Full Version : viewing results of query problem


Darksbane
08-06-2002, 10:50 AM
Hi,

I am trying to view the results of a query. Some snippets of my code:

SQL = "SELECT * FROM "& ptype &" WHERE pallet_no = 'US337+" & pal &"'

RS = DBconn.Execute(SQL)"

Now when I try to say something like RS.EOF, or RS. anything it gives me the error:

"Object doesn't support this property or method: 'EOF' "

Is there something I am missing?

Any help would be appreciated

Darksbane

Darksbane
08-06-2002, 02:57 PM
Figured it out should have had

SET RS = DBconn.Execute(SQL)

Roy Sinclair
08-06-2002, 02:57 PM
Did you create RS as a recordset object? If not then it's still just an ordinary variant.

set RS = System.CreateObject("ADODB.Recordset")