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

How do I delete record in multiple table in microsoft access
How to display the left side of a continuous form with a scrollbar at opening
Access combo box dropdown rowsource sql on change not working mystery
Access 2007 Male, Female, Unisex Categories for either Gender
MS-Access 2003 Deleted my Switchboard Form
MS Access: Taking information from Login form table and passing to another form
Building a query in Access
Corrupted Access .accdb file: “Unrecognized Database Format”
MS Access Update All Dates in a Table
Open Form in Access from Cross Table Query
How to Trigger MS Access Code based on specific time of day rather than every second or minutes
Insert Into Error
Access Crosstab query to show two values in each cell?
MS Access - How do I display two fields from separate records on the same line based on their ID and Date?
Make Outlook AppointmentItem Read-Only
VBA Executing CODE from a ComboBox

Categories

HOME
wso2
reflection
homebrew
raspberry-pi
octobercms
at-command
amortized-analysis
webpack-2
retrofit
ojdbc
webrequest
slick-slider
correlation
collectd
percona
worldwind
clojurescript
systemc
code-review
oxyplot
beyondcompare
visual-composer
introduction
xlsxwriter
google-search-api
realex-payments-api
trading
info.plist
maquette
atlassian-crucible
primitive
bcd
nameservers
copying
gammu
geopositioning
amazon-kinesis-kpl
mapdb
jmonkeyengine
android-browser
sharefile
hue
email-templates
gulp-sourcemaps
total-commander
reactive-cocoa-5
.net-4.6.2
thin
user-accounts
youcompleteme
atomicity
zip4j
react-scripts
typescript1.8
domain-model
memory-alignment
dwscript
eventkit
nested-sets
infix-notation
sts-springsourcetoolsuite
home-directory
phishing
plottable.js
holder.js
persist
pagedlist
qgraphicsview
whois
asp.net5
system.management
spim
lib.web.mvc
wordml
riak-cs
deis
sailfish-os
unity5.2.3
typekit
eol
tld
contenttype
system.net.webexception
prettify
ril
file-locking
eventual-consistency
padarn
robotics-studio
gil
runas
automount
errai
wse3.0
assembly-loading
joyent
pyinotify
lang
revisions
ncqrs
meego
django-notification

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