query issue with parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have a combo box and when i trigger a check box, i want the to run a
different query to populate the combo box. i am doing somethign wrong in this
code not sure what as i get a syntax error

Private Sub chkAllData_Click()
cmboSymbol.RowSource = "SELECT [TradeDiary].[Symbol] FROM [TradeDiary] " & _
" WHERE TradeDiary.Action <> #Ignore# ORDER BY
[Symbol];"




End Sub
 
What is #Ignore#?
The # delimiters will want to make it a date format
If you are looking for a string that is #Ignore# in the Action field, it
should be:
"#Ignore#"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top