ms-access
MS Access Pulling value from combobox in where condition using macro builder
I am trying to pull the value the user selects from a combo box in a Where Condition for a macro. The Row Source for the combo box is a table where the first Column is the id numbers and the second Column is the data that the user chose. I have tried both of the below statements with no luck 1) [Query]![value]=[Forms]![Main Menu]![Combo] 2) [Query]![value]=[Forms]![Main Menu]![Combo].[Column](1) Where combo is my combo box The first one I know is pulling the ID number which is not what I want. I have manually entered in a text box and found that if i set up my macro to match whats in the text box it will work correctly. How can I pull whats on the second column instead of the combo box? EDIT The workaround I found was I now instead did an after update on the combo box to fill an invisible textbox, then i instead used that to pull the value I needed. Such that: [Query]![value]=[Forms]![Main Menu]![textBox]
Related Links
Access vba: how perform inserts in two related tables?
How to find an average of a certain column in Access 2003?
How do I check if a saved import exists with VBA
Snapshot or Dynaset ,which one enhance the performance?
Microsoft Access 2010: Update a field in another table on button click
Alternative to Dlookup but saving values in table
How to open Form in Add record
Search creates issues in my MS Access form
Access vba treeview (class MSComctlLib.TreeCtrl.2) how select node after right mouse click
Ordering a Union Query in MS Access SQL
Access DB corruption issue, can't find info on similar issue anywhere
MS Access - Force Drop Down After Requery
Using a Citrix server to host an Access database frontend allowing faster access for geographically separated users
Concatenating memo fields produces a text field, need query to concatenate into a memo field
“Invalid use of Null” error on DoEvents statement in MsAccess
Passing parameter into a report from a form