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

OPening multiple copies of ACCESS app
Access New ID Field YYYYMMNN [duplicate]
Sequential Number Column with YYYYMM
I am trying to get the correct font size for my subform in Access
Start and stop MS Access VBA code on a specific time
Table Joining (ms Access, sql)
Howto write DDL ALTER TABLE Modify statement using string variable for TABLE name
Filter combobox: how to add “NOT filtered” option?
access 2010 form new record pre filled button
Azure SQL authentication with Office 365 Account
Microsoft Access displays both months and years differences
Combine several records with 1 id into 1 record in Access
Using form combo box to change server name of connection string
Blank pages in MS ACCESS Reports
MS-Access Earliest Time Issue
Undefined Function DiffDate Error

Categories

HOME
cakephp
variables
debugging
path-finding
appx
spring-jdbc
amortized-analysis
yum
podio
ios-charts
primary-key
iggrid
session-variables
row
handsontable
windows-azure-storage
flask-wtforms
percona
pugjs
ab-testing
interop
dbext
clickonce
kvc
microsoft-r
hammerspoon
fgetcsv
entitlements
typo3-6.2.x
kendo-datasource
tinymce-4
junit5
bosh
yadcf
create-table
uiswipegesturerecognizer
mmenu
bitbucket-pipelines
lto
elasticsearch-plugin
dism
preconditions
email-templates
avro4s
wptoolkit
user-accounts
network-flow
jedis
pubmed
alphabet
sage-one
windows-mobile-6.5
or-tools
objective-c-swift-bridge
android-fonts
merge-conflict-resolution
clang-static-analyzer
holder.js
rvest
two-factor-authentication
system.management
jmeter-maven-plugin
quicklisp
deis
ibaction
service-accounts
apache-commons-fileupload
iiviewdeckcontroller
device-orientation
csquery
system.reflection
facebook-graph-api-v2.4
block-device
jsonpickle
qpainter
java.util.concurrent
document-classification
heisenbug
starcluster
p4java
app42
message-driven-bean
farseer
geos
django-nonrel
chronoforms
jelly
wsdl-2.0
dice
wse3.0
amazon-appstore
asyncfileupload
eclipse-templates
data-loss
django-tagging
horizontal-accordion
visitor-statistic
swing-app-framework
eqatec
data-acquisition





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