I am creating a Session variable in my code as follows:
Session("VendorPartNumber") = (Recordset1.Fields.Item("ManufacturerPartNumber").Value)
I receive this error message: "Requested operation requires a current record" when ManufacturerPartNumber is empty.
Is there an IF statement that I can place the session code into to avoid the error message or is there an alternative method?
Session("VendorPartNumber") = (Recordset1.Fields.Item("ManufacturerPartNumber").Value)
I receive this error message: "Requested operation requires a current record" when ManufacturerPartNumber is empty.
Is there an IF statement that I can place the session code into to avoid the error message or is there an alternative method?