hey im new to this site but found it has helped me in the past with other similar problems. i want to be able to compare 2 fields in my sql my code is as follows:
The bold part is where i appear to be having problems. am i missing quotations or brackets or something?
thnx in advance
Code:
Private Sub Command1_Click() Exit Sub Adodc1.RecordSource = "SELECT Stock.[Product Code], Stock.Description, Stock.[Quantity in Stock], Stock.[Re Order Level] FROM Stock; [B]WHERE Stock.[Quantity in Stock]) < Stock.[Re Order Level];"[/B] Adodc1.Recordset.Requery Adodc1.Refresh DataGrid1.Refresh End Sub
thnx in advance
Comment