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

What do I gain from specifying relationships in my database?
Microsoft Access VBA: Button to Filter Report
Trying to pull data from text boxes on a form into a query and out to a table?
How do I find DDE connections and update to OLE connections in Access?
MSAccess - Export Fixed Length Text Records
How confifure ticket printer in ms access
Editing a Form in MS-Accesss
ms access graphic load on subform
Form gets focus when I am using VBA editor
Access file size with SharePoint lists -
Access err 2004 - out of memory
Format Now() to yyyymmdd for date serialization when exporting a PDF
Make MS Access wait a long time/ trigger at a certain time (VBA)
Microsoft Access - Dlookup with multiple criteria from different tables
“Query Too Complex” on a Union between multiple queries
Access is multiplying my query count by 38… why?

Categories

HOME
compiler-construction
variables
openstack
minimum-spanning-tree
azure-data-factory
kde
bpmn
jgroups
ckeditor
ojdbc
android-youtube-api
gitpitch
maude-system
rascal
quicklook
mapserver
nstableview
zend-framework3
sms-gateway
emulator
css-animations
mustache.php
wijmo
smb
react-css-modules
http-status-code-503
framemaker
lxd
protovis
mozilla
revolution-slider
web-mining
hockeyapp
event-driven
objectlistview
angularjs-factory
bootstrapper
quadratic-programming
mime
eclipse-gef
azure-application-gateway
hibernate-tools
upstart
rails-routing
mplayer
drupal-6
csound
nodebb
nsarray
media-player
lync-client-sdk
django-scheduler
sonarlint-vs
pycaffe
yt-project
nxt
gridpane
infix-notation
etsy
player
pagedlist
superstack
bluegiga
design-by-contract
wapiti
metaclass
browser-bugs
cakephp-3.1
twirl
graph-drawing
fluid-dynamics
website-monitoring
offloading
socketexception
oracle-warehouse-builder
mcts
mysqltuner
shellexecute
sabredav
drools-planner
android-hardware
tridion-worldserver
errai
regsvr32
buildr
asyncfileupload
nsobject
krl
gallio
nhibernate.search
ncqrs
kdbg
privilege
text-coloring
thread-local-storage
putchar

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