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

MS Access export report to pdf
MS Access - Why is the Totals button on the ribbon in my report greyed out?
Access 2010 Linked table to SharePoint 2007 missing column
Lookup vs Relationships in Access
How can I shift and duplicate rows in MS Access?
using checkbox in subform in access
How to Populate a Multi-column Combobox via code?
Tracking Changes made to hyperlink fields ms access
Access 2007 Query to return latest date note from subquery
How do I organise query output in the desired way? [duplicate]
Edits getting lost
“Unrecognized database format” and “Inconsistent State” format on back end of a split database
Show All Records For Given Field Filter In Access 2010 Table
MS Access Update Query to SharePoint List Locking up, no errors
How to detect focus change to any control?
MS Access: Report to contain info from third table

Categories

HOME
openlayers
vbscript
fluentd
single-sign-on
mfc
objectgears
bpmn
react-router
amazon-ecs
jgroups
icloud
windows-server
echarts
adfs
rascal
usergrid
iolanguage
seaborn
code-review
textfield
java-3d
scriptcs
physics-engine
web-sql
bootstrap-tour
firebase-crash-reporting
cas
underflow
bootstrap-duallistbox
intel-pin
maquette
ioio
amazon-kinesis-kpl
appfabric
serve
multilingual
libraries
code-search-engine
dism
sas-visual-analytics
particles.js
grid.mvc
core-plot
revapi
nstextview
setter
sonarlint-vs
deadbolt-2
color-picker
passport-google-oauth
database-optimization
multi-level
thrust
merge-conflict-resolution
mongocsharpdriver
holder.js
flash-cs5
sdf
bgp
independentsoft
photobucket
jfugue
execute
intel-fortran
libressl
kcachegrind
muse
microbenchmark
dundas
graph-api-explorer
pretty-print
e10s
asp.net-web-api-odata
wordpress-theme-customize
google-reader
dml
htmlcleaner
marmalade
algebraic-data-types
openlaszlo
html5-notifications
floating-point-precision
jsctypes
blending
gwt-rpc
getmessage
regsvr32
custom-backend
whoosh
boost-filesystem
hirefire
subgurim-maps
rfc1123
yetanotherforum
recent-documents
appendto
actionview
mongomapper
mysql-error-1005
lang
remember-me
visitor-statistic
icanhaz.js
sef
boost-smart-ptr
anti-piracy
pascal-fc
spec#
paul-graham

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