I have a search form in which I need to specify in the On Click of my cmd button
WHERE tblContracts.closed (checkbox) is not checked.
Beginning of string:
strSQL = "SELECT tblContracts.negid,tblContracts.supplier AS [Supplier],tblContracts.agreement AS [Agreement Name],tblContracts.followup AS [Follow Up Date],tblContracts.closed FROM tblContracts"
Problem code
I have tried the following lines and no results appear
Try 1) strWhere = "WHERE IsNull [tblContracts.closed] "
Try 2) strWhere = "WHERE tblContracts.closed = 0 "
Try 3) strWhere = "WHERE tblContracts.closed = No "
Try 4) strWHERE = "WHERE tblContracts.closed = 'No' " (+ other variations)
strOrder = "ORDER BY tblContracts.followup;"
The results show up in a list box on the form and it works great until I throw in the criteria for the WHERE clause (without it I just have strWHERE = "WHERE" and more is added on to the search string in the rest of the code)
My checkbox in my table is set to Yes/No.
Thanks in advance for any help with this.
Toni
WHERE tblContracts.closed (checkbox) is not checked.
Beginning of string:
strSQL = "SELECT tblContracts.negid,tblContracts.supplier AS [Supplier],tblContracts.agreement AS [Agreement Name],tblContracts.followup AS [Follow Up Date],tblContracts.closed FROM tblContracts"
Problem code
I have tried the following lines and no results appear
Try 1) strWhere = "WHERE IsNull [tblContracts.closed] "
Try 2) strWhere = "WHERE tblContracts.closed = 0 "
Try 3) strWhere = "WHERE tblContracts.closed = No "
Try 4) strWHERE = "WHERE tblContracts.closed = 'No' " (+ other variations)
strOrder = "ORDER BY tblContracts.followup;"
The results show up in a list box on the form and it works great until I throw in the criteria for the WHERE clause (without it I just have strWHERE = "WHERE" and more is added on to the search string in the rest of the code)
My checkbox in my table is set to Yes/No.
Thanks in advance for any help with this.
Toni