Originally Posted by
lithium
.....my new form (edit) will appear with the data they selected in the list box on main.
So you have only two forms? The "edit" form is your Add form? Seeing the code often times answers these questions.
In your Add form, the popup that is being used for editing purposes, you can reference the listbox value. Since you are using DoubleCLick event handler, I will assume this is not a multiselct listbox.
Code:
Forms![MainFormName]!
[ListboxControlName].Column(0)
so you can assign the value to your Add form something like this.
Code:
Me.Assigned_To.Value = Forms![MainFormName]!
[ListboxControlName].Column(0)
You need to get the column index correct to match the different fields in your edit form.
You can do something like this, in your Add form's load event, to make sure you have the correct column indexes. View the results in your Immediate Window. You can use Ctrl+G to display the Immediate window in your VBA IDE.
Code:
Debug.Print "Collumn 0 = " & Forms![MainFormName]!
[ListboxControlName].Column(0)
Debug.Print "Collumn 1 = " & Forms![MainFormName]!
[ListboxControlName].Column(1)
Debug.Print "Collumn 2 = " & Forms![MainFormName]!
[ListboxControlName].Column(2)
Debug.Print "Collumn 3 = " & Forms![MainFormName]!
[ListboxControlName].Column(3)