Open form from Listbox - not record but form for data entry

inkbird01

New member
Local time
Today, 21:43
Joined
Oct 5, 2022
Messages
20
Hi,

I have a list box that is used for navigation. If the user clicks on a list box item (row) then open the from with that name. I have a table tbl_controls that haves [ID].[Form Name].

I.e on click, lookat column o of the listbox and open the form that match the ID in the table

What is the best way to do this?

thanks
 
In the listbox Click or AfterUpdate event, use the code:
DoCmd.OpenForm Me.YourListboxName.

You can see a more complex version of this in my example app
 

Users who are viewing this thread

Back
Top Bottom