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

Dropdown list - default value
Share Windows folder outside my local network
VBA Access - Multiple Tables count by date
MS Access Pop-up on table modification
Combining multiple queries in one in Access
Fill table with all month days
Form based on a one-to-many relationship - just show parent records with child actions
Select Max Date by Date Range
MS Access Implementing FULL OUTER JOIN via UNION operator with AGGREGATION
access DLookUp multiple criteria
Combining 3 strings in Access VBA
DoCmd.TransferSpreadsheet triggering Error 3275 “unexpected error from external database driver”
Hyperlink Field with # in File Name
Access 2007: Creating an auto-updating record history
How to get an AfterUpdate procedure to update other fields in the same form
automatic conversion of Text into Decimal number - Access

Categories

HOME
hook
gerrit
omnet++
appx
stock
platform-builder
electron
octobercms
rdf
retrofit
cross-browser
ezpublish
ios-charts
bs4
upload
add
iggrid
communication
metatrader4
tomcat6
nstableview
zend-framework3
leiningen
http-status-code-504
database-replication
orleans
extjs5
wijmo
lcd
blazemeter
cas
dynamic-featured-image
bootstrap-duallistbox
intel-pin
uninstall
buck
gsmcomm
lightswitch-2013
iframe-resizer
jspresso
avcapturesession
phpfreechat
force-layout
catalog
greenrobot-eventbus
unoconv
nomethoderror
flickr-api
python-webbrowser
powercli
rdfs
setter
forever
android-cursor
windows-iot-core-10
lync-client-sdk
sonarlint-vs
or-tools
cubes
abcpdf9
jquery-filter
setuptools
google-feed-api
rotativa
mathematica-frontend
multiple-regression
bluegiga
ios4
oauth2client
uid
unity-networking
maven-tomcat-plugin
prerequisites
google-places
content-length
map-projections
drawbitmap
ideamart
splash
sysinternals
unity5.2.3
truevault
geonetwork
website-monitoring
gwidgets
ng-animate
javafx-webengine
onactivityresult
castle
mesa
picturefill
cloud-connect
java.nio.file
multiprocessor
tidy
pushbackinputstream
tridion-worldserver
buildr
libc++
zpt
tomcat-valve
rfc1123
w3wp.exe
yslow
database-management
brewmp
microsoft-virtualization

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