I am able to create list / combo boxes in a form where the fields displayed in the box (for the users to select) will depend on (1) what has been entered in other fields on the form and (2) results from other queries/look up tables. I'm happy with all of this.
Where I'm stuck is that I am now trying to create a list box which will display certain fields based on data entered in the form, where one piece of data will be completely new. In other words, I can't simply run a query in the 'RowSource' property because it won't return anything (as the query won't be based on data it can recoginse and thus cross reference).
I'm guessing I need to look up the appropriate VBA for accessing a table/query to see if certain data exists and then provide the form with the right fields that will be displayed in the list box. At the moment I have no idea how to do this. I would really appreciate some pointers/direction.
I hope this makes sense! Thanks.
Where I'm stuck is that I am now trying to create a list box which will display certain fields based on data entered in the form, where one piece of data will be completely new. In other words, I can't simply run a query in the 'RowSource' property because it won't return anything (as the query won't be based on data it can recoginse and thus cross reference).
I'm guessing I need to look up the appropriate VBA for accessing a table/query to see if certain data exists and then provide the form with the right fields that will be displayed in the list box. At the moment I have no idea how to do this. I would really appreciate some pointers/direction.
I hope this makes sense! Thanks.