1

I am doing it for first time I know asking an easy question. Couldnt figure it out on google I have a access form that have a combo box and list box, Based on the combox box value selected user List box shows a set of values, I want the user selected (The one which users selected) value in the list box to go as variable inside the seperate module.I tried something like

ListTable = Me.Linked_Table_List.ListIndex

ListTable = Me.Linked_Table_List.Value

and many more iteration but nothing is working

I want to used the value in listtable to go into another module. I have declared listTable as Global

Thanks in Advance!!

1 Answer 1

1

Using "Me" will only work within the form's module. If you need to reference this in another VBA module, you'd need to use "Forms!MyForm!Linked_Table_List". Note that you don't need to specify the property "Value" as it's the default for listboxes, textboxes, combos etc.

Sign up to request clarification or add additional context in comments.

3 Comments

ListTable = [Form]![Combo box]![Linked_Table_List]!.Value
Is your form called "Combo Box"? Note too, that you have a typo before "Value", you have "!." - should be just "!" . And, it should be Forms, not Form.
Yes my form name is combox box, Got that Max Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.