I have the following code on the OnClick of a button on a form:
strSQL = "SELECT Shelf_Life_Tbl.Shelf_Life " & _
"FROM Shelf_Life_Tbl " & _
"WHERE (((Shelf_Life_Tbl.Stock_Number)=2544) AND ((Shelf_Life_Tbl.Company)="Company1")) "
docmd.runSQL strSQL
How do I store the value returned by this query into a variable? I know it will only find one(or zero) records every time so that shouldn't be a problem.
Thanks as always,
Marco
strSQL = "SELECT Shelf_Life_Tbl.Shelf_Life " & _
"FROM Shelf_Life_Tbl " & _
"WHERE (((Shelf_Life_Tbl.Stock_Number)=2544) AND ((Shelf_Life_Tbl.Company)="Company1")) "
docmd.runSQL strSQL
How do I store the value returned by this query into a variable? I know it will only find one(or zero) records every time so that shouldn't be a problem.
Thanks as always,
Marco