R
Robert Vivian
I have a pecurliar problem with opening a recordset using a Querydef. I am
running Access 2000 under XP. The essense of the code follows. I am getting
a message that the OpenRecordset method requires 1 parameter but I am
already supplying 1 parameter. Does anyone have any ideas?
Public Sub FormatDetails(lngKey As Integer)
Dim qdfDetail As DAO.QueryDef
Dim rstTemp As DAO.Recordset
Set qdfDetail = dbsAlert.CreateQueryDef("", "select
CDate,TDate,Type,When,Interval,Title from " _
+ "Alert where Key = " + str$(lngKey))
With qdfDetail
Open Recordset from QueryDef.
Set rstTemp = qdfDetail.OpenRecordset(dbOpenSnapshot)
...
rstTemp.Close
End With
End Sub
running Access 2000 under XP. The essense of the code follows. I am getting
a message that the OpenRecordset method requires 1 parameter but I am
already supplying 1 parameter. Does anyone have any ideas?
Public Sub FormatDetails(lngKey As Integer)
Dim qdfDetail As DAO.QueryDef
Dim rstTemp As DAO.Recordset
Set qdfDetail = dbsAlert.CreateQueryDef("", "select
CDate,TDate,Type,When,Interval,Title from " _
+ "Alert where Key = " + str$(lngKey))
With qdfDetail
Open Recordset from QueryDef.
Set rstTemp = qdfDetail.OpenRecordset(dbOpenSnapshot)
...
rstTemp.Close
End With
End Sub