I have a form with a list box and a FIND button. When this button is pressed it leads the user thru a series of other forms to select records. I build an SQL and want to load it into the rowsource of the original form.
I'm using this code but it is not finding the form.
[Forms]![frmNewTicketSubform]![lstTickets].RowSourceType = "Table/Query"
[Forms]![frmNewTicketSubform]![lstTickets].RowSource = strSQL
[Forms]![frmNewTicketSubform]![lstTickets].Requery
I get no prompts when entering this code so dont know how to find out the correct reference. MS Access help was of no help (as usual)
I'm using this code but it is not finding the form.
[Forms]![frmNewTicketSubform]![lstTickets].RowSourceType = "Table/Query"
[Forms]![frmNewTicketSubform]![lstTickets].RowSource = strSQL
[Forms]![frmNewTicketSubform]![lstTickets].Requery
I get no prompts when entering this code so dont know how to find out the correct reference. MS Access help was of no help (as usual)