You can also use this query:
SELECT Reviews.FK_ReviewID
FROM Reviews LEFT JOIN Results
ON Reviews.FK_ReviewID = Results.FK_ReviewID
WHERE Results.FK_ReviewID is null
and reviews.FK_StatusID = 3
Regards,
Antonio
You may try to use this query>
SELECT [s/n], Max(open_date) - Min(close_date) AS Date_Difference
FROM myTable
GROUP BY [s/n];
This query doesn't work if you have more than two records for each s/n.
Regards,
Antonio
You need to change the RowSource properties (presents in Data tab) of the second combobox.
Then, in the code of the first combobox, put the instruction:
Combobox2.Requery
I've attached a sample hoping it can help.
Regards,
Antonio
Try with this code... I hope it's what you need:
Dim rs As Recordset
Dim query As String
Set rs = New ADODB.Recordset
query = "select count(*) from [qryCustNo] where qryCustNo.<myfield> = """ & Me.txtCustNo & """"
recordsMatchingText = 0
rs.Open query...