C
CM
Hi there:
I have created a form on MS Access 2000.
This form can display one record at a time using the navigate buttons.
On the form, the following line can be executed:
Me.Form.RecordSource = strSQL
But I don't know how to create a new recordset object, the second line does
not working:
Dim myRecordSet as Recordset
Set myRecordSet = Me.Form.OpenRecordset
I want to know on an MS Access form, what is the equivalent code like:
Set myRecordSet = objDatabase.OpenRecordset(strSQL)
Do I need create a new database object and a connection on the MS Access
form? If so, any sample code?
Thanks!
CM
I have created a form on MS Access 2000.
This form can display one record at a time using the navigate buttons.
On the form, the following line can be executed:
Me.Form.RecordSource = strSQL
But I don't know how to create a new recordset object, the second line does
not working:
Dim myRecordSet as Recordset
Set myRecordSet = Me.Form.OpenRecordset
I want to know on an MS Access form, what is the equivalent code like:
Set myRecordSet = objDatabase.OpenRecordset(strSQL)
Do I need create a new database object and a connection on the MS Access
form? If so, any sample code?
Thanks!
CM