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

Selecting data from the start of every hour
MS Access Query - Use a parameter value as one of the selected records
How can I add a filter to my form based upon a joined table's columns that don't appear in the Select clause?
MS Access - Open database form from URL
How to insert “Entire” DAO recordset into a table with VBA
Passing a form and list box
Access VBA: Is there any way to get computer specs?
Microsoft Access DoCmd.TransferText additional column
MSAccess VBA ORDER BY not working on dynamic recordsource
Field Display Question
How to add new record to subform
Search value in MS Access from textbox
leagacy ms access database with some unreadable fields
subform display not updating (but its record count can be seen to be changing in vba)
Access VBA: Syntax error on WHERE clause, possible type conflict?
MS Access Copy Table Structure Only

Categories

HOME
layout
tizen-web-app
sqlite3
yum
uber-api
contact
slurm
nano-server
spring-kafka
windows-phone-7
size
hapi
clearcase-ucm
serilog
evopdf
autocad-plugin
one-hot-encoding
jquery-ajaxq
functional-testing
pass-by-reference
bootstrap-tour
crosstab
selectedindexchanged
rst2pdf
saas
dbclient
preg-match
google-rich-snippets
nameservers
titanium-mobile
webtest
stringtemplate
subset-sum
language-concepts
nssegmentedcontrol
fusionpbx
plsql-psp
suricata
gesture
hilbert-curve
webix-treetable
jna
user-controls
galen
google-closure
nxlog
total-commander
gpx
multipeer-connectivity
hendrix
sage-one
pebble-watch
return-value
powercli
aurelia-validation
brightcove
nodebb
dtexec
epson
mako
imanage
django-scheduler
query-performance
messenger
cubes
spring-android
slicknav
multi-level
mathematica-frontend
impresspages
independentsoft
two-factor-authentication
uid
spim
wso2cloud
jqgrid-formatter
operation
composite
angular-local-storage
geonetwork
castle
phpthumb
mysql-error-1062
floating-point-precision
cdc
file-locking
xamlparseexception
enterprisedb
dmoz
trusted
viewswitcher
regsvr32
doh
krl
mongomapper
w3wp.exe
gin
jquery-ui-droppable
ncqrs
compiler-specific
exchange-server-2003
uimenucontroller
privilege
pascal-fc
grid-system
paul-graham
document-conversion

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App