too few parameters (1 Viewer)

Brian Martin

Registered User.
Local time
Today, 02:48
Joined
Jul 24, 2002
Messages
68
My Query:

PARAMETERS [Forms]![CurrentList]![ListID] Text ( 255 );
SELECT Join.*, Join.ListID
FROM [Join]
WHERE (((Join.ListID)=[Forms]![CurrentList]![ListID]));

I then want to make T a recordset based on this query in my code:

Dim d As Database
Dim T As Recordset

Set d = CurrentDb()
Set T = d.OpenRecordset("qryCurrentList")

I get an error saying too few parameters, 1 expected.

How do I correct this?
 

FoFa

Registered User.
Local time
Yesterday, 20:48
Joined
Jan 29, 2003
Messages
3,672
You need to have your form open and active (not design view) when you run the query. Oh, and the control named has to be there also.
 

Users who are viewing this thread

Top Bottom