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 adding data from multiple tables
Exempting a row from a group of items by MIN function group by a column
MS Access: How to filter report on non-report field?
How to check duplicate record in access
Format Access Table
use an IIF atatement in a form of access 2007
Binding data to a combo box in access [closed]
Relationship with ID field but display text values in Access
Advanced Filter Criteria in Access
JOIN tables in Access
Docx4J: How to remove relationship for MailMerge?
Delay loading records of subform
MS Access Query using IFF to compare values
Refering to another field in a form and return entries based on the filed
“Too many active users” error for access db even though there are less active users
Visual basic code for login form in MS Access

Categories

HOME
openlayers
wso2-am
wso2
omnet++
deezer
google-docs
leon
cakephp-2.5
dxl
directx
slurm
resize
php-7.1
ehcache
language-agnostic
trading
xpages-ssjs
sparse-matrix
facet
dynamic-featured-image
web-api-testing
jaxb2
libssl
tasklet
bcd
galsim
oracle-fusion-middleware
caret
mapdb
ios5
wixsharp
appfabric
stacked
hot-module-replacement
withings
android-browser
starteam
android-tabhost
grid.mvc
powershell-dsc
eigenvalue
no-www
chain-builder
upstart
jquery-validate
logparser
yii2-extension
namecoin
python-cryptography
color-profile
sonarlint-vs
minimization
measures
etsy
markojs
suffix-tree
cartesian-product
sdhc
metaclass
mutation-observers
muse
sframe
truevault
npapi
kineticjs
formatjs
dia
dd
google-style-guide
asp.net-web-api-odata
expected-exception
xceed-datagrid
mcts
ms-project-server-2010
listings
mylyn
rabl
jquery-mobile-dialog
clipper
typoscript2
hamiltonian-cycle
isnullorempty
errai
online-compilation
dotnethighcharts
semantic-diff
krl
locate
mongomapper
floating
datareader
w3wp.exe
fluent-interface
document-conversion

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile