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 vba: how perform inserts in two related tables?
How to find an average of a certain column in Access 2003?
How do I check if a saved import exists with VBA
Snapshot or Dynaset ,which one enhance the performance?
Microsoft Access 2010: Update a field in another table on button click
Alternative to Dlookup but saving values in table
How to open Form in Add record
Search creates issues in my MS Access form
Access vba treeview (class MSComctlLib.TreeCtrl.2) how select node after right mouse click
Ordering a Union Query in MS Access SQL
Access DB corruption issue, can't find info on similar issue anywhere
MS Access - Force Drop Down After Requery
Using a Citrix server to host an Access database frontend allowing faster access for geographically separated users
Concatenating memo fields produces a text field, need query to concatenate into a memo field
“Invalid use of Null” error on DoEvents statement in MsAccess
Passing parameter into a report from a form

Categories

HOME
fft
relay
octobercms
spagobi
setup-deployment
microservices
flyway4
indesign
facebook-messenger-bot
modx-revolution
modelica
phaser
msp430
hapi
foselasticabundle
openrefine
sms-gateway
google-cloud-speech
alpine
google-search-api
selectedindexchanged
internet-explorer-9
kendo-datasource
procdump
contact-form
siesta-swift
scorm2004
xmlreader
amazon-kinesis-kpl
simplexml
serverside-rendering
withings
reportbuilder
angularjs-factory
sfdc
botbuilder
sencha-touch-2.3
feeds
django-scheduler
wdf
sts-springsourcetoolsuite
home-directory
azure-virtual-network
ctest
pickadate
revolution-r
freelancer.com-api
natvis
execute
teamcity-8.0
marching-cubes
sysinternals
method-parameters
nsight
iiviewdeckcontroller
remobjects
c++03
sorl-thumbnail
c3
rdtsc
java-metro-framework
htmlcleaner
doskey
android-2.2-froyo
aqtime
quartz-graphics
cassini-dev
browser-detection
dmoz
gil
coderush
datawindow
javaspaces
ticoredatasync
chrono
qtkit
buildr
semantic-diff
pendrive
punbb
bigcouch
zpt
rfc1123
mirah
libs
ctp4
private-members
w3wp
msdev
wsdl.exe
uiq3

Resources

Encrypt Message