J
jonny
Hi I appreciate your help.
Depending on condition of a If statement I determine which column
table I want to pull data from...so...
If dropdown text is "" empty I want to use table column name
"ShopOrderFiller" in my sql query otherwise I want to use table column
name "ShopOrder".
For example:
Dim Sfiller as string
If dropdown.text = "" then
Sfiller = "ShopOrderFiller"
Else
Sfiller = "ShopOrder"
End if
SELECT * FROM myTable WHERE Sfiller = '" & dropdown2.text & "'
The problem here is that Sfiller is not an actual table column name so
is there a way I can do this?
Depending on condition of a If statement I determine which column
table I want to pull data from...so...
If dropdown text is "" empty I want to use table column name
"ShopOrderFiller" in my sql query otherwise I want to use table column
name "ShopOrder".
For example:
Dim Sfiller as string
If dropdown.text = "" then
Sfiller = "ShopOrderFiller"
Else
Sfiller = "ShopOrder"
End if
SELECT * FROM myTable WHERE Sfiller = '" & dropdown2.text & "'
The problem here is that Sfiller is not an actual table column name so
is there a way I can do this?