Hello Jason,
Per your question, your code may not work as expected. You may need to use
Querydef to do the job.
Set db = CurrentDb
Set qdf = db.QueryDefs("abc")
qdf.Parameters(1) = ws_char
Set rst = qdf.OpenRecordset(dbOpenSnapshot)
Please see the following article on how to bind recordset to a form.
How to bind Microsoft Access forms to ADO recordsets
http://support.microsoft.com/kb/281998
If you have further questions or concerns, please feel free to let's know.
Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.