Thanks pbaldy
I created the formed based on the following query that does not have a unique value per row. is there a separate index value i can use in place of the Me.EmpID? Does the form have a unique hidden value per row?
Code:
SELECT DeletedPrds.*FROM (SELECT [Catalog section].nSectionID, [Catalog section].nParentSectionID AS SectionParent, [Catalog section].status AS SectionStatus, [Catalog section].[Section text], IIf(IsNull(Product.sSingleProductPageName),[Catalog section].[Section text],Null) AS sectionName, [Catalog section].sSectionDescription, iif(Instr( [Catalog section].sSectionDescription , 'Remaining Fabrics in this range have been moved to Clearance') > 0, 'CLEAR', NULL) As ClearMssage,
[Catalog section].bHideOnWebSite, [Catalog section].sPageName, 'https://www.secretgardenquilting.co.uk/acatalog/' & [Catalog section].sPageName AS sectionHTMLPage, Product.nParentSectionID, Product.nGroupID,
iif(Product.nGroupID = 19, 'END RANGE', iif(Product.nGroupID = 20, 'CLEARANCE', '') ) As DiscGroup, Product.status AS ProductStatus, Product.[Product Reference], Product.nStockOnHand, Product.[Short description], Product.sSingleProductPageName, Product.bSuppressHtml, IIf(IsNull(Product.sSingleProductPageName),Null,'https://www.secretgardenquilting.co.uk/acatalog/' & Product.sSingleProductPageName) AS ProductHTMLPage
FROM [Catalog section] LEFT JOIN Product ON [Catalog section].nSectionID = Product.nParentSectionID
WHERE (((Product.[Product Reference]) Not Like '*!*') AND ((InStr([Product].[Short description],' EOB '))=0) AND ((InStr([Product].[Short description],'TEMP '))=0) AND ((InStr([Product].[Short description],'PDF'))=0) AND ((InStr([Product].[Short description],'Post'))=0) AND ((InStr([Product].[Short description],'Workshop'))=0) AND ((InStr([Product].[Short description],'course'))=0) OR ((IsNull([Product].[Product Reference]))<>False) )
ORDER BY [Catalog section].[Section text], Product.[Product sequence] ) AS DeletedPrds
WHERE (IsNull([DeletedPrds].[Product Reference]) = FALSE) OR ( (IsNull([DeletedPrds].[Product Reference]) ) AND DeletedPrds.SectionParent = 1);