A
Andrew Glennie
Hi All,
I have a continuous form which uses a query to provide its main data, but
there are a couple of checkboxes which pick up their data from another query
via a dlookup but they are very slow to display. From another post, I created
a DAO recordset but keep getting Run Time Error 3061, Too Few Parameters.
The code is as follows:
Dim rsLevel As DAO.Recordset
Dim LevelSql As String
LevelSql = "SELECT AttendeeID, [L2 Attended], [L4 Attended] FROM
[Attendance List]" & _
"WHERE AttendeeID=[Forms]![Attendees List]![AttendeeID]"
Set rsLevel = CurrentDb.OpenRecordset(LevelSql)
Me.L2Attended = rsLevel![L2 Attended]
Me.L4Attended = rsLevel![L4 Attended]
rsLevel.Close
The code falls over at the Set rsLevel line.
Any suggestions gratefully received.
Regards
Andrew
I have a continuous form which uses a query to provide its main data, but
there are a couple of checkboxes which pick up their data from another query
via a dlookup but they are very slow to display. From another post, I created
a DAO recordset but keep getting Run Time Error 3061, Too Few Parameters.
The code is as follows:
Dim rsLevel As DAO.Recordset
Dim LevelSql As String
LevelSql = "SELECT AttendeeID, [L2 Attended], [L4 Attended] FROM
[Attendance List]" & _
"WHERE AttendeeID=[Forms]![Attendees List]![AttendeeID]"
Set rsLevel = CurrentDb.OpenRecordset(LevelSql)
Me.L2Attended = rsLevel![L2 Attended]
Me.L4Attended = rsLevel![L4 Attended]
rsLevel.Close
The code falls over at the Set rsLevel line.
Any suggestions gratefully received.
Regards
Andrew