Hello can anyone advise the correct format to write the below SQL into a VBA module. I've attempted to write as a macro and convert but this has not worked either.
INSERT INTO [L-MajorBusiness]
SELECT [Standard-Elec*tmp].*
FROM [Standard-Elec*tmp]
WHERE ((([Standard-Elec*tmp].Supplier)="L") AND (([Standard-Elec*tmp].Customer_Category)="MB" Or ([Standard-Elec*tmp].Customer_Category)="LA") AND (([Standard-Elec*tmp].[RCBA_Y/N])="NON_RCBA") AND (([Standard-Elec*tmp].Stamp)=Date())) OR ((([Standard-Elec*tmp].Supplier)="L") AND (([Standard-Elec*tmp].[RCBA_Y/N])="WITH_RCBA") AND (([Standard-Elec*tmp].Stamp)=Date()));
INSERT INTO [L-MajorBusiness]
SELECT [Standard-Elec*tmp].*
FROM [Standard-Elec*tmp]
WHERE ((([Standard-Elec*tmp].Supplier)="L") AND (([Standard-Elec*tmp].Customer_Category)="MB" Or ([Standard-Elec*tmp].Customer_Category)="LA") AND (([Standard-Elec*tmp].[RCBA_Y/N])="NON_RCBA") AND (([Standard-Elec*tmp].Stamp)=Date())) OR ((([Standard-Elec*tmp].Supplier)="L") AND (([Standard-Elec*tmp].[RCBA_Y/N])="WITH_RCBA") AND (([Standard-Elec*tmp].Stamp)=Date()));