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 query complexity: layered calculations
Detect If Current Record is Deleted on Access Bound Form
Passing a LPCTSTR parameter to an API call from VBA in a PTRSAFE and UNICODE safe manner
ACCESS: Truncation error when appending CSV data to tables?
Collapse MS Access Table
Update from group query without creating a physical table
Error during Closing the MS Access application
Record is too large MS Access runtime error
List all rows from two queries that produce the same columns
Finding where dependant object is called
Microsoft Access automatically rounds numbers
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1
Self Containing Form for Heirarchical Data
Microsoft Access 2007, about column value
Select from 2 tables
Implementing Many to Many, Subforms, Checkboxes in Access 2007

Categories

HOME
ibm-bluemix
pdf
blogger
heroku
pycharm
office365api
xmpp
google-docs
maven-3
jpeg
google-project-tango
pivotal-cloud-foundry
onelogin
windows-10-universal
facebook-php-sdk
u-sql
leiningen
serverless-framework
highlight.js
invantive-sql
apache-metamodel
undefined
pythonanywhere
django-cms
orleans
icloud-api
info.plist
bootstrap-material-design
phpfox
nhapi
atlassian-crucible
nat
nouislider
caret
normal-distribution
mmenu
bower-install
ios5
space-complexity
ansible-playbook
temporary-files
core-plot
android-mediaprojection
sencha-touch-2.3
scrollable
rails-routing
logparser
datastax-startup
dropbox-php
brightcove
carrot
python-cryptography
arrow-keys
vtigercrm
or-tools
watchconnectivity
nxt
log4c
trash
mathematica-frontend
php-parse-error
unity-networking
reactive-banana
atk4
quicklisp
muse
ionic
ios9.1
appfabric-cache
graph-drawing
sankey-diagram
sortedlist
dundas
angular-local-storage
sonarqube5.1.2
notify
gwidgets
neolane
jquery-layout
doskey
message-driven-bean
sitemesh
soundtouch
ora-00911
batterylevel
mylyn
sabredav
limejs
distutils
angularjs-controller
dmoz
jquery-knob
funscript
parametric-equations
ticoredatasync
horizontal-accordion
gdlib
jmock
privilege
yagni
.net-1.0

Resources

Encrypt Message