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 2010 Query pulling data that matches a label value
How to find broken queries in Access?
Hand Install of 64-bit MS Access ODBC drivers when 32-bit Office is present
How to insert values into an Access table's AutoNumber field?
java connecting to access database problem
How do you connect MS Access Database which is located on a file hosting site using VB6.0?
Can I add a button in an Access stock program to search Outlook?
Access 2000 Calling Append Query through GUI
Access 97 creating object from VB
Connection string for Access 2010
Data in Combo Box in form not relfecting in Access Report
Error with Access Stored Query that uses VBA Modules from excel
Failure creating Access database from TFS 2010
How should I normalize this table?
Is there a decent command Reference for VBA and Access 97?
Access 97 databases

Categories

HOME
osgi
date
omnet++
activiti
fme
vmware
icloud
webpack-2
cross-browser
gnupg
volttron
google-cloud-spanner
windows-azure-storage
size
circuit
try-catch
opencover
functional-testing
csrf-protection
extjs5
android-widget
p-value
dynamic-featured-image
xacml
libssl
nat
preg-match
fabric8
react-chartjs
google-api-nodejs-client
plsql-psp
code-search-engine
xenforo
angularjs-factory
opshub
ws-security
reportingservices-2005
powershell-dsc
heightmap
zip4j
hls.js
colorama
windows-iot-core-10
lync-client-sdk
orthogonal
synchronous
setuptools
flash-cs5
prettytensor
iad
ora-00900
tmuxinator
jqgrid-formatter
tarjans-algorithm
sframe
microbenchmark
splash
sysinternals
truevault
csquery
websocket4net
project-planning
listings
cos
mt
first-responder
viewswitcher
assembly-loading
cufon
deobfuscation
psi
rescale
adrotator
anti-piracy
post-build

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