I am calling a SELECT * using this code
Dim db As Database
Dim rs As Recordset
Dim s As String
Dim x As Integer
Set db = CurrentDb
s = "SELECT * FROM [Set rs = db.OpenRecordset(s, dbOpenDynaset)
x = rs.RecordCount
MsgBox (x)
There are over 200 entries in the table yet it only returns the top one. I have tried to set it up in the query builder, where it works fine, and call the query instead of my string but the same thing happens. Can someone please tell me what I am doing wrong.
Thanks much
Doug
Dim db As Database
Dim rs As Recordset
Dim s As String
Dim x As Integer
Set db = CurrentDb
s = "SELECT * FROM [Set rs = db.OpenRecordset(s, dbOpenDynaset)
x = rs.RecordCount
MsgBox (x)
There are over 200 entries in the table yet it only returns the top one. I have tried to set it up in the query builder, where it works fine, and call the query instead of my string but the same thing happens. Can someone please tell me what I am doing wrong.
Thanks much
Doug