listbox requery on subform with no previous data

G

Guest

I need to requery an unbound listbox on a subform from a third form's close
event. The simple requery method works if the listbox already has data, but
it does not work if the listbox was blank before the third form was opened.

I tried the requery method:
Forms![frm_task_detail]![frm_view_notes].Form![lst_notes].Requery

And also setting the rowsource of the listbox:
Forms!frm_task_detail!frm_view_notes.Form!lst_notes.RowSource = "SELECT
tbl_notes.Notes_ID, tbl_notes.Username, tbl_notes.Date, tbl_notes.Notes FROM
tbl_notes WHERE (((tbl_notes.Task_ID)=Forms!frm_task_detail!Task_ID)) ORDER
BY tbl_notes.DateEntered "

Neither bits of code seem to work. Any help is always greatly appreciated.

Thanks,
Melanie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top