A
Alok Joshi
Friends
One of the expert sites gives the following as an example
'************ Code Start ****************
Dim db As Database 'current database
Dim rs As Recordset 'holds query resultset
Dim qdfParmQry As QueryDef 'the actual query object
Set db = CurrentDb()
Set qdfParmQry = db.QueryDefs("Qry1")
qdfParmQry("Please Enter Code:") = 3
' or try this alternate method
' to pass the parameter
qdfParmQry![Please Enter City:] = "New York"
Set rs = qdfParmQry.OpenRecordset()
'************** Code End ***************
However this puts the result of the recordset in rs and then one can go
through the records etc. What I want is just to display the records in a
grid like access does if you run the same query in the GUI. What do I need
to do?ThanksAlok
One of the expert sites gives the following as an example
'************ Code Start ****************
Dim db As Database 'current database
Dim rs As Recordset 'holds query resultset
Dim qdfParmQry As QueryDef 'the actual query object
Set db = CurrentDb()
Set qdfParmQry = db.QueryDefs("Qry1")
qdfParmQry("Please Enter Code:") = 3
' or try this alternate method
' to pass the parameter
qdfParmQry![Please Enter City:] = "New York"
Set rs = qdfParmQry.OpenRecordset()
'************** Code End ***************
However this puts the result of the recordset in rs and then one can go
through the records etc. What I want is just to display the records in a
grid like access does if you run the same query in the GUI. What do I need
to do?ThanksAlok