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

Create Directory for records in MS Access 2007
How can I script copying an Access table from one mdb to another?
ms access can't edit field because I must delete relationships but there are no relationships to delete
Build a field-lookup-query using the value of another field
How to programmatically retrieve query text of all queries
What is the best file format to parse?
How to execute VBA function from MS Access Form?
ms Access form subform sort
graph (node and edges) in access
ETL Tool for transfering old Firebird Database to a new organized Firebird Database
MS Access SELECT and WHERE
After Me.Recalc in Access off-screen values are not displayed
Microsoft Access Disable User Input for Automation
In MSAcess Database, Insert query to insert the character with apostrophe
ms access auto fill main form based on focus of subform
Access 2003 Continuous Forms

Categories

HOME
gerrit
urbancode
kde
cakephp-2.5
jxls
elasticsearch-hadoop
communication
metatrader4
modelica
resize
windows-server-2012
hapi
facebook-page
oxyplot
dbext
csrf-protection
dxf
web-api-testing
maquette
windows-server-2000
kendo-datasource
librato
stormpath
http-status-code-503
framemaker
vsts-build-task
xmlreader
atl
http-digest
file-format
qwerty
dynamics-crm-2013
sharefile
angularjs-factory
particles.js
email-templates
android-tabhost
eclipse-scout
scorm
babel-core
qwt
logparser
hendrix
sqlclient
crypt
media-player
knpmenubundle
imanage
url-masking
contact-list
lttng
rvest
goose
appfabric-cache
vstest.console.exe
javax.mail
python-green
formatjs
block-device
dd
issuu
ceil
fluentautomation
transcoding
didselectrowatindexpath
app42
dexterity
odata4j
kyotocabinet
distutils
rdoc
word-processor
pysimplesoap
objective-c-2.0
dotnethighcharts
amazon-appstore
semantic-diff
cufon
custom-backend
boost-filesystem
gwt-ext
pydot
subgurim-maps
xdomainrequest
horizontal-accordion
ext3
substrings
zend-tool
memory-size
data-driven
premature-optimization
gacutil
data-acquisition
wsdl.exe
lzh

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