Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would guess something like this:
"SELECT table1.company FROM pathname WHERE Company_Name =" & "'" & me.combobox1.Value & "'" Where company_name is the column in access where you would look for the value in combobox1. Replace with the real field name. == Regards, Tom Ogilvy "Ali" wrote in message ... Hello, Im trying to retrieve some data from an access table into excel. I have a drop down list, where I want the chosen value to be the criteria for a query statement. How can I use variables to be used as the criteria to filter data within a query statement. "SELECT table1.company FROM pathname WHERE (table1.company = 'value from combo box' " any ideas?? im probably being very thick! many thanks ahead. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select Case Statement | Excel Worksheet Functions | |||
If Statement to select a letter | Excel Worksheet Functions | |||
SQL Select statement with Date as | Excel Programming | |||
Adding SQL Select Statement | Excel Programming | |||
Wildcard character with Select Statement | Excel Programming |